Extend the argument-completion hook (shipped in #3728) to /drop: pressing Tab after /drop lists the session's currently attached files.
Approach (from the command-argument-autocomplete plan, Stream B — single standalone PR):
- New
App.AttachedFiles() accessor (nil-guarded wrapper over sess.AttachedFilesSnapshot(); works on remote runtimes since attachments are client-side).
dropCandidates + attachDropCompletion targeting the session.drop command, wired in BuildCommandCategories. Exact recorded file paths are used as labels, guaranteeing resolvability via the exact-match branch of resolveAttachedFile; paths containing spaces are safe because the completion Value is the full command line. Disabled never applies.
- Tests + docs (
docs/features/tui/index.md) + CHANGELOG in the same PR.
Tracked follow-up to #3730.
Extend the argument-completion hook (shipped in #3728) to
/drop: pressing Tab after/droplists the session's currently attached files.Approach (from the
command-argument-autocompleteplan, Stream B — single standalone PR):App.AttachedFiles()accessor (nil-guarded wrapper oversess.AttachedFilesSnapshot(); works on remote runtimes since attachments are client-side).dropCandidates+attachDropCompletiontargeting thesession.dropcommand, wired inBuildCommandCategories. Exact recorded file paths are used as labels, guaranteeing resolvability via the exact-match branch ofresolveAttachedFile; paths containing spaces are safe because the completionValueis the full command line.Disablednever applies.docs/features/tui/index.md) + CHANGELOG in the same PR.Tracked follow-up to #3730.