Skip to content

feat(tui): argument auto-completion for /drop #3732

Description

@aheritier

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.

Metadata

Metadata

Assignees

Labels

area/tuiFor features/issues/fixes related to the TUIgood first issueGood for newcomers

Fields

No fields configured for Enhancement.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions