Skip to content

fix(mobile): show which folder the picker will authorize - #2421

Merged
DoodleBears merged 2 commits into
mainfrom
claude/project-thread-gi4bet
Oct 20, 2026
Merged

DoodleBears merged 2 commits into
mainfrom
claude/project-thread-gi4bet

Conversation

@DoodleBears

Copy link
Copy Markdown
Contributor

Requested by Vain · project thread

Why the change

Android QA of #2392 (comment) tapped a registered folder, pressed Back on its confirm sheet, then pressed Authorize this folder. That button grants the folder being browsed (the parent, D:\code), but nothing on screen said so, and the parent was granted by mistake (revoked within a minute, nothing changed).

Issue / Discussion: Refs #2392.

Special things to note

  • Merge risk: copy and layout only, easily reverted. Back already returns to the picker without moving; the fix makes the target visible instead of changing what the button does. Both folder sheets (the chat request card and Bot settings → Add folder) show Will authorize: <full path> / 将授权:<完整路径> above the actions. I first tried putting the folder name on the button, but a long name pushed Cancel off screen, so the path sits on its own wrapping line and the button label stays short.
  • Verification: a new regression test in apps/mobile/test/grant-request-card.test.ts taps the registered row, goes Back, and asserts the sheet names /Users/qa, not the registered path; mobile grant-request-card and bot-settings tests pass, and pnpm lint, pnpm format:check and the mobile typecheck pass. node scripts/e2e-mobile-folder-browse-web.mjs passed with a real deepseek-v4.1-flash request and a new namesTarget check. Native Android recheck is queued with the Android thread after merge.
  • CI test plan: affected.

Change outline

Light Dark

Expo Web export at 390×844; layout evidence, not native.


Generated by Claude Code

After backing out of a registered folder's confirm sheet, the primary
button still authorized the folder being browsed (its parent) with no
visible target, and Android QA granted the parent by mistake. Both folder
sheets now show "Will authorize: <path>" above the actions.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GzQmtMAahcsx9doCNJgFLe
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GzQmtMAahcsx9doCNJgFLe
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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 35 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 66294234-1b60-4234-920c-59032640d085
📥 Commits

Reviewing files that changed from the base of the PR and between 57fbf24 and 8edc47a.

⛔ Files ignored due to path filters: 2
  • .github/pr-screenshots/mobile-folder-target/browse-folder-dark.png is excluded by !**/*.png
  • .github/pr-screenshots/mobile-folder-target/browse-folder-light.png is excluded by !**/*.png
📒 Files selected for processing: 8
  • .agents/skills/verify-deepseekbot/features/workspace-request-write.md
  • apps/mobile/src/ui/chat/folder-picker-sheet.tsx
  • apps/mobile/src/ui/chat/workspace-sheet.tsx
  • apps/mobile/src/ui/strings.ts
  • apps/mobile/test/grant-request-card.test.ts
  • changes/2421-phone-folder-target.md
  • scripts/e2e-mobile-folder-browse-web.mjs
  • scripts/verification-inventory.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@DoodleBears DoodleBears self-assigned this Oct 20, 2026
@DoodleBears
DoodleBears merged commit 0517edf into main Oct 20, 2026
11 checks passed
DoodleBears added a commit that referenced this pull request Oct 20, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Copy link
Copy Markdown
Contributor Author

Android phone result: PASS (Xiaomi, Android 16 / HyperOS 3, isolated QA Host and release build of main with this PR)

Screenshots: 2421-android-folders/phone (commit e9c856d)

Scene Files
Browsing the target folder 1-browsing-bhqa-target-*
Registered folder tapped → confirm sheet 2-confirm-registered-*
After Back, "将授权:" names the folder being browsed 3-after-back-target-*
In a new empty test folder → confirm → granted 4-in-test-folder-*, 5-confirm-*, 6-granted-*

Each theme granted only a newly created empty test folder; the path was correct both times. Both grants were revoked and the folder deleted.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants