Skip to content

fix(desktop): refresh sessions when server home changes - #121

Merged
sanchitrk merged 2 commits into
canaryfrom
prem315/fix-session-refresh
Nov 1, 2026
Merged

sanchitrk merged 2 commits into
canaryfrom
prem315/fix-session-refresh

Conversation

@prem315

@prem315 prem315 commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Switching between two healthy CodeWork server homes kept the previous server’s sessions in the sidebar. Opening one then failed because that session did not exist on the newly selected server.

Refresh CodeWork queries when the usable default server’s home changes, and share the same projects query between the sidebar and Projects widget so both refresh together.

Validation:

  • vp check
  • vp run typecheck
  • cd apps/server && vp test test/health.test.ts
  • Manual agent-browser test on the desktop follow-up branch using the Codex subscription and GPT-6 Luna: real replies, context recall, and four saved messages survived closing and reopening the session.

The manual test also found a blank workspace after a full reload and a new session title that stays stale until refresh. Those issues remain outside this two-file fix. Earlier desktop changes from #120 are excluded.

@sanchitrk
sanchitrk merged commit ce0dac2 into canary Nov 1, 2026
2 checks passed
@sanchitrk
sanchitrk deleted the prem315/fix-session-refresh branch November 1, 2026 11:03
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.

2 participants