Skip to content

fix(agent): make transcript links navigable - #283

Merged
fcoury-oai merged 1 commit into
codersauce:mainfrom
fcoury-oai:fcoury/agent-link-navigation
Aug 18, 2026
Merged

fcoury-oai merged 1 commit into
codersauce:mainfrom
fcoury-oai:fcoury/agent-link-navigation

Conversation

@fcoury-oai

Copy link
Copy Markdown
Collaborator

Agent transcript links can look actionable but fail when a source target is relative to the conversation workspace rather than the current Red workspace. An ordinary double-click also only selected the link, and source locations shown inside literal Markdown could produce a malformed keyboard-navigation target.

This change:

  • activates rendered transcript links with an unmodified double-click while preserving modifier-click behavior
  • resolves missing relative file targets against the current or uniquely matching open buffer and fails closed when matches are ambiguous
  • recognizes the destination inside literal Markdown link examples without folding the label into the file path

How to Test

  1. Open a source file whose basename is not resolvable from the Red process working directory.
  2. Render a transcript link such as startup.
  3. Single-click the link and press Enter; expect Red to reuse the open buffer and move to line 1661.
  4. Return to another line and double-click the same link without modifiers; expect the same navigation.
  5. Open two files with the same matching suffix and follow a relative link while neither is current; expect Red to refuse the ambiguous target rather than choosing one.

Automated coverage includes the focused link parsing, path-resolution, Enter, and double-click tests, plus:

  • cargo test -- --test-threads=1
  • cargo clippy --all-targets --all-features -- -D warnings

@fcoury-oai
fcoury-oai merged commit fd9b8c6 into codersauce:main Aug 18, 2026
12 checks passed
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