git status: send an explicit outsideCwd flag so symlink-escaping paths are non-selectable too (#9155 follow-up)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript
Research direction
Start by tracing the server's git status entries and the gitStage and gitUnstage containment checks, then find where both clients determine whether rows are selectable. Add the server flag using the same real-path containment rule and preserve the lexical fallback for older daemons. Add the symlinked-directory test from the acceptance criteria; done means Stage All stages inside files and skips the outside symlink row without failing.
Written by the indexing model from the issue text.
Description
Context
Identified during review of PR #9155 (#8187).
Description
#9155 marks git rows outside the session's folder as non-selectable. The clients derive "outside" from the cwd-relative path (.., a ../ prefix, or an absolute path), mirroring the server's lexical rule.
The server's gitStage and gitUnstage containment check goes further: it also refuses a path that is lexically inside the cwd but whose real path resolves outside it, through a symlink. The client cannot work that out. Such a row stays selectable, and a bulk Stage All that includes it still fails as a whole.
Acceptance Criteria
- The server's git status entries carry an explicit
outsideCwd: true(optional; omitted when false) computed with the same real-path check thatgitStageandgitUnstageenforce. - Both clients prefer the server flag and fall back to the lexical rule for older daemons.
- A test with a symlinked directory inside the cwd that points outside it: the row is non-selectable, and Stage All stages only the truly inside files, with no failure.
- Dominant language
- JavaScript
- Stars
- 7
- Forks
- 1
- Avg merge
- 2h 3m
- Merged PRs (30d)
- 333
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from blamechris/chroxy
-
from-review tech-debt testing
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
blamechris/chroxy#9520 ·
Maintainers usually reply within 1 day
-
priority: low server
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
blamechris/chroxy#9340 ·
Maintainers usually reply within 1 day
-
documentation from-review
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
blamechris/chroxy#9237 ·
Maintainers usually reply within 1 day
-
agent-control client: notify() docstring should say the outbound gate applies only in principal modeOpenenhancement from-review
Difficulty 1/5 Under an hour Newbie friendliness 80/100
blamechris/chroxy#9227 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
blamechris/chroxy#9108 ·
Maintainers usually reply within 1 day
All issues in blamechris/chroxy
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Use one constant for the 10,000-character input limitPossibly taken @NginxL claimed this today. Opengood first issue refactor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
aniru-dh21/snap-validate#51 ·
Maintainers usually reply within 1 day
-
Documentation pleaseOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
area/host bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Fei2411/DeepSeek-Bot#3190 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
freelawproject/litigant-portal#1307 ·
Maintainers usually reply within 2 days