Commit fa51e07
feat(agent): add @ file picker for context file selection
Implement Claude Code-style file and folder selection for agent context:
- Add new input handler with real-time @ file suggestions
- Support arrow key navigation in dropdown picker
- Enter selects suggestion, submit only when picker closed
- Allow multiple @ file references in single message
- Add slash command autocomplete with / trigger
- Integrate with existing autocomplete system
Files can now be shared with the agent using @filename syntax,
enabling users to explicitly provide context during conversations.
Changes:
- New src/agent/ui/input.rs with custom input handler
- Extended autocomplete.rs with file search capabilities
- Updated session.rs to use new input system
- Minor fixes to tool detector and diff display1 parent e1f2b93 commit fa51e07
9 files changed
Lines changed: 830 additions & 66 deletions
File tree
- src
- agent
- ui
- analyzer/tool_management
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
407 | 406 | | |
408 | 407 | | |
409 | 408 | | |
410 | | - | |
411 | | - | |
| 409 | + | |
| 410 | + | |
412 | 411 | | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
| 412 | + | |
418 | 413 | | |
419 | | - | |
420 | | - | |
| 414 | + | |
| 415 | + | |
421 | 416 | | |
422 | 417 | | |
423 | 418 | | |
| |||
429 | 424 | | |
430 | 425 | | |
431 | 426 | | |
432 | | - | |
433 | | - | |
434 | | - | |
| 427 | + | |
| 428 | + | |
435 | 429 | | |
436 | 430 | | |
437 | 431 | | |
0 commit comments