Keep the session list consistent across browser tabs #73
No reviewers
Labels
No labels
Agent
Ignore
Agent
In Progress
Agent
Planned
Agent
Planning
Agent
Ready
Agent
Triage
Compat
Breaking
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
Security
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lucas/omp-deck!73
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/issue-27-session-list-sync"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes: #27
Implements the plan in the issue:
SessionSummary.liveand asessions_changedbroadcast frame.notifySessionsChanged()clears the cache and broadcasts. It runs on create, resume, dispose, delete, title regeneration, rename, auto-title, extensionsetSessionName, andagent_end.listSessionsnow builds fresh copies withliveon every call, and adds active sessions that are not on disk yet.GET /sessionsno longer mutates cached objects. Archive and unarchive now broadcast.sessions_changed. The archive, unarchive and rename actions refetch instead of editing the list locally.archivedAtis removed from the live session state. The Sidebar partitions on server data only.SessionViewnavigates to/sessionwhen the open session becomes archived.SessionPicker.tsxreadarchivedAtfrom the live session state. It now reads archive state fromsessions.Small deviations:
workspacePath ?? cwd, to match the existing scoping for trigger sessions.Verification:
bun run typecheckpasses, andbun testinapps/serverpasses (873 tests). I have not done the manual two-tab check, because this session ran unattended.