Skip to content

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

Closed as not planned

Description

@InCerryGit

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

In the OpenCode web UI, references to source files with line numbers (e.g. src/foo/bar.ts:123) shown in assistant messages or logs are currently rendered as plain text.

I would like these references to be clickable, so that clicking them:

  • Opens the referenced file in the web file viewer
  • Automatically scrolls to (or highlights) the specified line number

This would bring the web experience closer to the desktop version and significantly improve code navigation and review workflows.


Example

When a message contains something like:
src/XXXX.Core/XXXXX/XXXXXXX.cs:545

*.txt
Plaintext
Clicking it should:

  1. Open XXXXXXX.cs in the web file viewer
  2. Jump directly to line 545 (or the closest available line)

Why this matters

  • This is a very common workflow when reviewing explanations, logs, or analysis generated by OpenCode.
  • On desktop, similar references can already be navigated efficiently.
  • On web, users currently have to:
    • Manually search for the file
    • Scroll to the line number by hand
  • This breaks context and slows down debugging, review, and learning workflows.

For users relying on the web UI (including remote access or mirror use cases), this missing feature is especially noticeable.


Expected behavior / possible implementation

Possible approaches (implementation detail up to maintainers):

  • Detect path/to/file:line patterns in rendered messages
  • Render them as clickable links
  • On click:
    • Open the file in the existing web file viewer
    • Scroll to / focus the target line
  • Gracefully handle cases where:
    • The file does not exist
    • The line number is out of range

Even a minimal implementation (open file + approximate scroll) would already be a big usability improvement.


Current behavior

  • File and line references are displayed as plain text
  • No navigation or interaction is available from messages in the web UI

Additional context

This feature would also align well with ongoing efforts to improve web/desktop parity and make the web UI more suitable for serious code review and debugging tasks.

If needed, I can provide screenshots or short screen recordings to demonstrate the current limitation.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Feb 13, 2026
  2. stenci commented on Mar 16, 2026

    @stenci

    I opened a duplicate by mistake in #17816, but this is the right issue.

    I have a working local implementation of this in the desktop app.

    A few behaviors it currently covers:

    • plain text refs like utils.py
    • file:line refs like utils.py:123
    • line ranges like utils.py:123-130
    • paths with / and \
    • absolute Windows paths
    • ambiguous basename matches via a picker instead of guessing

    Attaching a short video showing the behavior.

    If useful, I can open a PR or compare these behaviors against #15269 so the remaining gaps are clear.

    OpenCode.Deeplinks.mp4
  3. manifestcowboy commented on Mar 19, 2026

    @manifestcowboy

    Please add!

  4. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    webRelates to opencode on web / desktop
    on May 3, 2026
  5. Spikhalskiy commented on May 4, 2026

    @Spikhalskiy

    On desktop, similar references can already be navigated efficiently.

    It doesn't seem like Desktop has it either, at least in 1.14.32.
    file:line are rendered as plain text without an ability to navigate to them.

  6. OnkelTem commented on Jun 8, 2026

    @OnkelTem

    @stenci Do you have this as a PR?

  7. stenci commented on Jun 9, 2026

    @stenci
  8. OnkelTem commented on Jun 9, 2026

    @OnkelTem

    I see, thank you @stenci

  9. github-actions commented on Aug 9, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions