Skip to content

Enable clickable file-path links inside CLI agent TUIs#1

Merged
jpitchell merged 1 commit into
masterfrom
cli-agent-file-links
Jun 1, 2026
Merged

Enable clickable file-path links inside CLI agent TUIs#1
jpitchell merged 1 commit into
masterfrom
cli-agent-file-links

Conversation

@jpitchell

@jpitchell jpitchell commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Summary

Enable clickable file-path links inside CLI agent TUIs (Claude Code, Codex, etc.).

When a CLI agent runs on the alternate screen, it enables SGR mouse reporting, which caused Warp to suppress file-path link detection (treating it like vim/nano). This change re-enables hover linkification and Cmd+Click for file paths whenever a tracked CLIAgentSession is active for the terminal view.

Changes

  • Add FeatureFlag::CliAgentFileLinks (default-on for Dogfood) + cargo feature wiring
  • Add user setting general.cli_agent_file_links (default true) with a Settings → Features toggle
  • Relax the from_editor gate in scan_for_file_path via should_detect_cli_agent_file_links(), which checks flag ∧ setting ∧ has_active_cli_agent_session() — vim/nano (no agent session) and remote/SSH sessions remain unaffected
  • Add a unit test covering the full flag/setting/session gating matrix (Claude + Codex)

Notes

…Codex, etc.)

When a CLI agent runs on the alternate screen, it enables SGR mouse reporting
which caused Warp to suppress file-path link detection (treating it like vim/nano).
This change re-enables hover linkification and Cmd+Click for file paths whenever a
tracked CLIAgentSession is active for the terminal view.

- Add FeatureFlag::CliAgentFileLinks (default-on for Dogfood) + cargo feature wiring
- Add user setting general.cli_agent_file_links (default true) with Settings → Features toggle
- Relax the from_editor gate in scan_for_file_path via should_detect_cli_agent_file_links(),
  which checks flag ∧ setting ∧ has_active_cli_agent_session() -- vim/nano (no agent session)
  and remote/SSH sessions remain unaffected
- Add unit test covering the full flag/setting/session gating matrix (Claude + Codex)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jpitchell jpitchell merged commit 665726b into master Jun 1, 2026
8 of 20 checks passed
@jpitchell jpitchell deleted the cli-agent-file-links branch June 1, 2026 22:30
@jpitchell jpitchell restored the cli-agent-file-links branch June 1, 2026 22:33
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.

1 participant