You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Direct /:dir/... routes do not register the project in the sidebar #18943
When opening OpenCode through a direct directory route such as:
/:dir/session
/:dir/session/:id
the main view enters the correct directory context, but the sidebar does not automatically show that directory as an opened project.
As a result:
the project button does not appear in the sidebar
the full session list for that project is not shown in the sidebar
the user has to manually open/add the project once before the sidebar becomes consistent
This looks like a frontend state-registration bug in the direct-route entry path.
OpenCode version
1.3.0
Steps to reproduce
Open OpenCode with a direct route like /{base64(directory)}/session
Or open /{base64(directory)}/session/{id}
Observe that the main area is in the correct directory
Observe that the sidebar does not show the project as opened
Actual behavior
The direct route creates the directory context, but does not register the project into the sidebar's opened-project state.
Expected behavior
Direct route entry should behave the same as manually opening a project:
the project should appear in the sidebar
the project session list should load automatically
duplicate entries should not be created
Notes
From local source inspection, manual project opening already goes through a shared project-open path that is idempotent and also triggers session loading.
The direct /:dir/... route appears to resolve the directory successfully, but does not call the same project-open registration path.
Activity
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.