Skip to content

Fix/37 vscode dead sessions#39

Open
jjeliga wants to merge 3 commits intomainfrom
fix/37-vscode-dead-sessions
Open

Fix/37 vscode dead sessions#39
jjeliga wants to merge 3 commits intomainfrom
fix/37-vscode-dead-sessions

Conversation

@jjeliga
Copy link
Copy Markdown
Contributor

@jjeliga jjeliga commented Mar 24, 2026

closes #37

Jan Jeliga added 2 commits March 24, 2026 11:11
Signed-off-by: Jan Jeliga <jan.jeliga@gmail.com>
Signed-off-by: Jan Jeliga <jan.jeliga@gmail.com>
@jjeliga jjeliga requested review from Copilot and matoushavlena and removed request for matoushavlena March 24, 2026 10:47
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes issue #37 by preventing Clawdboard from showing VS Code sessions that have been deleted/hidden in the IDE, aligning the UI with what the user sees in the Claude VS Code sidebar.

Changes:

  • Update sessions UI (list + footer count) to rely on appState.activeSessions.
  • Add VSCodeHiddenSessions to read hiddenSessionIds from VS Code-family state.vscdb global state.
  • Extend SessionStateWatcher.readAllSessions() to delete session state files whose IDs are hidden in the IDE.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
Sources/ClawdboardLib/Views/SessionsTab.swift Switch grouping source from all sorted sessions to active sessions to avoid showing inactive/dead entries.
Sources/ClawdboardLib/Views/PanelView.swift Footer count now reflects activeSessions instead of all sessions.
Sources/ClawdboardLib/VSCodeHiddenSessions.swift New helper to discover VS Code-family global state DBs and extract hiddenSessionIds.
Sources/ClawdboardLib/SessionStateWatcher.swift Removes session state files when a session is hidden/deleted in the IDE.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jjeliga jjeliga marked this pull request as draft March 24, 2026 10:52
Signed-off-by: Jan Jeliga <jan.jeliga@gmail.com>
@jjeliga jjeliga marked this pull request as ready for review March 24, 2026 11:09
@jjeliga jjeliga requested a review from jezekra1 March 26, 2026 14:15
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.

fix: clawdboard shows non-existent/deleted vscode sessions

2 participants