Skip to content

tui: remove visible error append for MCP failure/cancelled status#129

Merged
shayne-snap merged 1 commit into
mainfrom
fix/lazy-mcp-startup
May 25, 2026
Merged

tui: remove visible error append for MCP failure/cancelled status#129
shayne-snap merged 1 commit into
mainfrom
fix/lazy-mcp-startup

Conversation

@shayne-snap
Copy link
Copy Markdown
Contributor

MCP startup failures and cancellations are transient operational events. Show them in the status bar and internal logs instead of injecting error messages into the visible chat transcript.

Changes

  • model_events.go: Remove m.append("error", ev.Text) from EventMCPStatus handler for failed/cancelled statuses
  • model_test.go: Rename TestMCPStatusFailureAddsVisibleWarningTestMCPStatusFailureUpdatesStatusAndLogOnly with updated assertions (status + log entry, no transcript pollution)
  • model_test.go: Refactor TestLocalCommandResultCommitsIdleAssemblerBeforeNextPrompt to use EventInfo instead of EventMCPStatus{failed} — the test was always about idle-assembler commit ordering, not MCP failure behavior

Testing

  • make test passes
  • Existing test coverage adapted to verify new behavior

MCP startup failures and cancellations are transient operational events.
Show them in the status bar and internal logs instead of injecting error
messages into the visible chat transcript.

- Remove m.append("error", ev.Text) from EventMCPStatus handler
- Rename and update TestMCPStatusFailureAddsVisibleWarning to
  TestMCPStatusFailureUpdatesStatusAndLogOnly, verifying status
  update + log entry + no transcript pollution
- Refactor TestLocalCommandResultCommitsIdleAssemblerBeforeNextPrompt
  to use EventInfo instead of EventMCPStatus{failed}, since the test
  was never about MCP failure behavior
@shayne-snap shayne-snap merged commit e2e7f58 into main May 25, 2026
2 checks passed
@shayne-snap shayne-snap deleted the fix/lazy-mcp-startup branch May 25, 2026 07:42
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.

1 participant