feat(sessions): push new sessions to the list instantly #328
No reviewers
Labels
No labels
backend
bug
chore
duplication
effort:complex
effort:medium
effort:trivial
enhancement
frontend
fullstack
priority:high
ready-for-agent
refactor
security
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dries/ocman!328
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/session-created-refresh"
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?
Summary
ocman.session.changedfor created/moved sessions; the frontend inserts it into the['sessions', ...]query cache before the authoritative refetch, so a new session appears without waiting for the next poll.sessionsvc.Hooks.SessionCreatednow receives aCreatedSession(id, platform, directory, title) built without extra I/O, keeping the create path fast.Testing
make test(Go + vitest),make lintinsertProvisionalSession(dedup, dir-scope, empty-cache) and the forwarded session row.Coverage ratchet: ✅ pass
Tolerance: -0.1%. Baseline stored on
gh-pages.