Repository navigation
Combine untracked files into Changes - #31831
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 3 minutes. View limit details
📝 Walkthrough
Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
417e96eb-9135-4e0d-a257-08b09625573f
📥 Commits
Reviewing files that changed from the base of the PR and between 0a7d6bb and 3f6fd82ef789618917206fdec845ff883ae27200.
📒 Files selected for processing: 25
mobile/src/source-control/mobile-git-status.test.tsmobile/src/source-control/mobile-git-status.tsmobile/src/source-control/mobile-path-sort.test.tssrc/renderer/src/components/right-sidebar/discard-all-sequence.test.tssrc/renderer/src/components/right-sidebar/source-control-discard-confirmation.test.tssrc/renderer/src/components/right-sidebar/source-control-file-filter.test.tssrc/renderer/src/components/right-sidebar/source-control-section-order.test.tssrc/renderer/src/components/right-sidebar/source-control/commit/discard-all-sequence.tssrc/renderer/src/components/right-sidebar/source-control/commit/discard-confirmation.tssrc/renderer/src/components/right-sidebar/source-control/commit/use-bulk-actions-capped-stage.test.tsxsrc/renderer/src/components/right-sidebar/source-control/commit/use-bulk-actions.tssrc/renderer/src/components/right-sidebar/source-control/listing/file-filter.tssrc/renderer/src/components/right-sidebar/source-control/listing/section-action-buttons.test.tsxsrc/renderer/src/components/right-sidebar/source-control/listing/section-order.tssrc/renderer/src/components/right-sidebar/source-control/listing/uncommitted-sections.tsxsrc/renderer/src/components/right-sidebar/source-control/listing/use-file-listing.tssrc/renderer/src/components/right-sidebar/source-control/listing/use-file-projection-work.test.tsxsrc/renderer/src/components/right-sidebar/source-control/listing/use-file-projection.tssrc/renderer/src/components/right-sidebar/source-control/panel/panel-content.tsxsrc/renderer/src/components/settings/GitPane.test.tssrc/renderer/src/components/settings/GitPane.tsxsrc/renderer/src/components/settings/git-search.tssrc/renderer/src/i18n/locales/en.jsonsrc/shared/source-control-group-order.test.tssrc/shared/source-control-group-order.ts
💤 Files with no reviewable changes: 2
- src/renderer/src/components/right-sidebar/source-control/listing/file-filter.ts
- src/renderer/src/components/right-sidebar/source-control/listing/use-file-listing.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
bd73efaa-51b6-4445-b908-c384c75535d1
📥 Commits
Reviewing files that changed from the base of the PR and between 3f6fd82ef789618917206fdec845ff883ae27200 and 667c753a6dbce498d028b20d5fed8212d37692f3.
📒 Files selected for processing: 8
src/renderer/src/components/right-sidebar/source-control/commit/discard-confirmation.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/pt.jsonsrc/renderer/src/i18n/locales/zh.json
🚧 Files skipped from review as they are similar to previous changes: 2
- src/renderer/src/components/right-sidebar/source-control/commit/discard-confirmation.ts
- src/renderer/src/i18n/locales/en.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
667c753 to
87bebe1
Compare
414 commits landed on main between ebc8b06 and f045046. The six older catalogs conflicted along with en-runtime-required.json, and pt.json, which stablyai#31627 added to main, came in with them, so all seven catalogs and en-runtime-required.json are taken from main and the prune is recomputed in one pass. It is the previous 1,618 keys plus 6: three lost their reader when stablyai#31831 combined untracked files into Changes, two when stablyai#31593 added the PTY inventory to the Resource Manager, and SshStatusSegment.connecting with stablyai#32083. None left the set. en.json goes from 16,929 entries to 15,305; en-runtime-required.json keeps 597 of them. native-chat-shared-copy-matches-catalog.test.ts conflicted because stablyai#31425 added a test right above the block this branch rewrites. The branch's edit was re-applied on main's version of the file with git apply -C1 ("Context reduced to (1/1) to apply fragment at 45"); the file now differs from main by exactly the branch's added and removed lines.
Problem
Untracked files were shown in a separate section from other working changes, making source control actions and ordering less consistent.
Solution
Show untracked files together with unstaged files in Changes, while preserving their file identity for selection and actions. Stage all and discard all now include those files, with clearer deletion warnings. Legacy “untracked first” preferences safely fall back to Changes first.
ELI5
Untracked files now live with the other files you are working on, so there are fewer sections to scan.
What Changed
Why
A single Changes section makes the working-file list easier to understand and keeps bulk actions aligned with what is visible. This avoids a separate untracked-only path while preserving safe confirmation language for permanent deletion.
Linked Issue
TODO: No linked issue provided.
Fixes #
Visual Proof
TODO: UI behavior changed; before/after visual proof has not been provided.
Testing
AI Disclosure
Review
Agent skill upstream boundary
Notes
Cross-platform, remote SSH, mobile, backwards compatibility, performance, and security were considered. Mobile behavior is updated; legacy group-order preferences fall back safely.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)