Skip to content

feat(ui): make edited file references clickable in desktop session UI#15269

Draft
anduimagui wants to merge 3 commits intoanomalyco:devfrom
anduimagui:feat/desktop-clickable-file-links
Draft

feat(ui): make edited file references clickable in desktop session UI#15269
anduimagui wants to merge 3 commits intoanomalyco:devfrom
anduimagui:feat/desktop-clickable-file-links

Conversation

@anduimagui
Copy link

@anduimagui anduimagui commented Feb 26, 2026

Issue for this PR

Closes #13430

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

It makes file references in session output clickable so users can open files directly from agent responses and tool results.

The change adds shared openFilePath plumbing, detects file-like inline code references (including path:line and file://...) in markdown, and wires clicks in edit/write/apply_patch file labels to open the file in the review panel.

Related work and how this is different (plain English)

How this PR differs:

  • This PR targets the app/ui path used by desktop/web session rendering and tool cards.
  • It links inline code-style file references in markdown (for example src/foo.ts, src/foo.ts:42, and file://...) and also makes filenames inside edit/write/apply_patch cards clickable.
  • Clicking opens the file in the existing review/file flow via shared openFilePath plumbing.
  • It does not implement TUI sidebar behavior; that scope is covered by feat(tui): make modified files in sidebar clickable #14016.

How did you verify your code works?

  • bun run typecheck in packages/ui
  • pre-push hook (bun turbo typecheck) passed on push

Screenshots / recordings

  • N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Add clickable file links for inline markdown path references and edit/write/apply_patch file entries so desktop and web users can open changed files directly from the timeline.
@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Feb 26, 2026
@github-actions
Copy link
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

[FEATURE]:[Web]: Clickable file:line references in messages (jump to file and line)

1 participant