Agent chat: the trust ask names a chat's private folder in words

Merged
TE
24d ago
+570-4

Agent chat dogfood on a capture mini (DEV build of feat-cmux-next). A new chat in a workspace starts in its private folder under ~/Library/Application Support/cmux/agent-home/…. Its trust ask read "The agent can edit and run code in /User…": the raw path, cut off before it named anything, so the one decision the chat asks for had no subject.

That folder is now named in words: "The agent can edit and run code in this chat's private folder", and after the answer "Trusted this chat's private folder" or "Won't trust this chat's private folder". The full path is in the tooltip. A project folder still shows its name ("atlas-web").

Localization: three new sentence keys (trust.askPrivate, trust.trustedPrivate, trust.untrustedPrivate) in all 21 agent pane locales, written as whole sentences because the folder slot takes different grammatical cases across locales (pl, ru, de). generated/strings.json was regenerated with gen-strings.mjs agentPane. ./scripts/localize-changes reports no new macOS keys and no changed web messages.

Verification

  • Red at cce50e7571df (test only): bun test test/trust-ask-private-folder.test.tsx received the raw path.
  • Green on this head: that test (2 pass), ui-rules (4 pass), and bun run check formatting and lint. Typecheck fails only on NewTabPage.gallery.tsx, a base red from #20127 that this branch does not touch.

Changelog

Fixed: The folder trust question names a chat's private folder in words instead of a cut-off path.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Fixes the agent chat trust ask so a chat's private folder is named in words ("this chat's private folder") instead of the raw path, which was cut off before it named anything.

  • The full path now lives in the tooltip, and project folders still show their name.
  • Adds three new sentence keys (trust.askPrivate, trust.trustedPrivate, trust.untrustedPrivate) in all 21 agent pane locales, plus tests for the private-folder and project-folder cases.