Skip to content

fix(app): sync session sidebar loading and title generation across project context#24491

Open
theprismdata wants to merge 1 commit intoanomalyco:devfrom
theprismdata:codex/session-sidebar-title-split
Open

fix(app): sync session sidebar loading and title generation across project context#24491
theprismdata wants to merge 1 commit intoanomalyco:devfrom
theprismdata:codex/session-sidebar-title-split

Conversation

@theprismdata
Copy link
Copy Markdown

@theprismdata theprismdata commented Apr 26, 2026

Issue for this PR

Closes #23607
Closes #18943
Related to #21441
Related to #19348
Related to #20269

Type of change

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

What does this PR do?

  • Reloads project session list immediately after creating a new session.
  • Syncs session upserts across directory/project context so sidebar stays in sync.
  • Improves layout/sidebar project resolution and root-session visibility checks.
  • Removes an over-restrictive title generation guard so new sessions can be titled reliably.
  • Keeps session listing stable by relying on project scoping rather than strict directory equality.

How did you verify your code works?

  • Ran bun typecheck in packages/app.
  • Ran bun typecheck in packages/opencode.
  • Verified new-session creation and sidebar/session-title updates in desktop app flow.

Screenshots / recordings

Will attach UI screenshots for session list/title behavior in this PR.

Checklist

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

Verification Environment

  • macOS (Apple Silicon)
  • OpenCode Desktop (dev build)
  • Verified: new session creation, sidebar session list refresh, session title generation/update
  • Note: Windows behavior was not validated in this PR.

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

I found a potentially related PR that should be checked:

Related PR Found:

Additionally, PR #23862 - "fix: sessions missing from sidebar on Windows due to path separator mismatch" could be relevant as it also deals with session sidebar display issues, though it's specifically Windows-focused.

Bojun-Vvibe added a commit to Bojun-Vvibe/oss-contributions that referenced this pull request Apr 26, 2026
…en-code macos installer

- anomalyco/opencode#24491 (merge-after-nits): cross-project sidebar sync via cross-directory store fan-out + loadSessions refetch + panelProject memo, with two drive-by behavior changes (prompt.ts title gate, session.ts directory filter) that should be split out
- anomalyco/opencode#24487 (merge-as-is): five-route httpapi parity bridge for share/unshare/deleteMessage/deletePart/updatePart with URL-vs-body validator on updatePart and SessionRunState.assertNotBusy gate on deleteMessage
- QwenLM/qwen-code#3627 (needs-discussion): macOS osacompile-AppleScript installer with no signing/notarization, curl-pipe-bash from unpinned main URL, and login-shell PATH-resolution gap for nvm/fnm users
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.

POST /session ignores directory query parameter for session record Direct /:dir/... routes do not register the project in the sidebar

2 participants