Repository navigation
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Related but different: #47265 (clickable background subagent entries), #53933 (reference another session's context), #36193 (TUI session overview and pinned shortcuts). None of them covers jumping to a session that the agent names in its reply.
Describe the enhancement you want to request
When the agent's reply refers to another session, render that reference as a button or link that opens the session in one click.
What happened
In the web UI (OpenCode v2.0.26, opencode2 serve), I asked the agent where a background job's sessions run, because I couldn't find them. The exchange went like this:
- I asked where the job runs, since I didn't see it in OpenCode v2.
- The agent replied that there are two sessions, "Goal: badges" and "Goal: daily PRs", under a specific project folder, and that they were created a few minutes earlier, so I should refresh the session list.
- I replied with a screenshot: "but I couldn't see it right here."
- The agent answered that both sessions exist under that folder, that it couldn't tell why I didn't see them, and that it had woken one of them so it would move to the top of the list. It then asked me which folder or screen I was looking at.
The agent knew the exact session IDs the whole time. I still had to switch projects, scroll, and search by title, and I gave up before finding them. Four messages went to locating two sessions that the agent could have handed me directly.
What I'd like
- When an assistant message contains a session ID, or a tool result returns one, show an Open session button next to it.
- The button opens the session even when it belongs to a different project or directory, without requiring you to switch projects first.
- Optionally, give the agent a way to emit a session reference on purpose (for example, a
session://<id>link that renders as a chip with the session title).
Why it helps
- Agents that spawn or manage other sessions (background jobs, subagents, scheduled work) already know the IDs, so the UI only needs to make them clickable.
- It removes a whole class of "where is it?" back-and-forth, especially on mobile, where browsing the session list across projects is slow.
- It also covers the case in app: make background subagent entries in Session details clickable #47265, since a subagent entry is one more place a session ID appears.
Activity
opencode-agent commentedon Oct 17, 2026
Thanks for the detailed write-up! You're asking for sessions that the agent mentions in a reply to open in one click, even when they belong to another project.
Most of this is already in v2.0.26, the version you're on. When an assistant message contains a full session ID (
ses_followed by 26 characters), as plain text or inline code, the web UI shows it as a button. Clicking it opens the session in a tab, and you don't need to switch projects first. In your conversation, the agent seems to have named the sessions only by title ("Goal: badges", "Goal: daily PRs"), so there was nothing to link.Until the agent does this on its own, you can add a line like this to your
AGENTS.md:These parts aren't covered yet, and the maintainers will consider them:
Related issues and PRs:
opencode://session/<id>for the desktop appRaphaelFakhri commentedon Oct 17, 2026
Another case from today, on OpenCode v2.0.26 web UI (
opencode2 serve). This time the agent included the full session ID, and getting to the session still failed.What happened
I asked the agent to find the session where an earlier piece of work happened and let me open it.
The agent found it by title and ID (
ses_ec68cb100ffe72VF07rXJmir1P). Because it had no supported way to produce a link, it guessed a URL from the directory:https://<server>/L2hvbWUvb3BjL2NrLWVtYWls/session/ses_ec68cb100ffe72VF07rXJmir1P.Opening that URL crashes the app:
The agent then guessed a second format,
/server/<base64 server URL>/session/<id>, and told me it couldn't confirm that one works either. Its fallback advice was to find the session by title in the session list, which is the manual search this issue asks to remove.Three messages went to producing a link to a session the agent had already identified by ID.
What this adds to the request
session://<id>link or a tool that returns a canonical, openable URL, so they don't guess route formats.Unrecognised route!error.