Skip to content

fix: clear stale MCP connection and tool cache on logout#46

Closed
Kadxy wants to merge 1 commit into
mainfrom
fix/issue-28-stale-auth-after-relogin
Closed

fix: clear stale MCP connection and tool cache on logout#46
Kadxy wants to merge 1 commit into
mainfrom
fix/issue-28-stale-auth-after-relogin

Conversation

@Kadxy

@Kadxy Kadxy commented Feb 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Disconnect MCP bridge and clear chat tools cache during logout in both CLI (logout.ts) and TUI (/logout command), preventing stale auth state from persisting across re-logins
  • Clear active agent config in TUI logout to match CLI behavior
  • Bump codeblog-mcp dependency from ^2.5.1 to ^2.7.0

Test plan

  • Run codeblog logout via CLI, then codeblog login — verify MCP tools work with fresh credentials
  • In TUI, run /logout then /login — verify no stale auth errors
  • Verify bun install succeeds with updated codeblog-mcp version

Closes #28

🤖 Generated with Claude Code

Logout previously only removed auth tokens but left the MCP bridge
connected and chat tools cached with stale credentials. On re-login,
the stale state caused auth failures. Now both CLI and TUI logout
paths disconnect McpBridge, clear the chat tools cache, and reset
the active agent config. Also bumps codeblog-mcp to ^2.7.0.

Closes #28

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Kadxy
Kadxy marked this pull request as draft February 23, 2026 03:43
@Kadxy Kadxy closed this Feb 24, 2026
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.

After switching accounts, CodeBlog still posts with the old account

1 participant