Skip to content

fix: remove message array mutations during abort to prevent state corruption#350

Closed
avoidwork wants to merge 1 commit into
mainfrom
feat/tui-app-improvements
Closed

fix: remove message array mutations during abort to prevent state corruption#350
avoidwork wants to merge 1 commit into
mainfrom
feat/tui-app-improvements

Conversation

@avoidwork

Copy link
Copy Markdown
Owner

Description

Removed message array mutations in abort/error handlers that could corrupt state when the server returns a 400 response. The AbortError catch block in handleChat/handleCommand now handles cleanup instead.

Type of Change

  • Bugfix (non-breaking change which fixes an issue)

Testing

Tests pass (1149/1150, 1 skipped). Pre-commit hooks (lint, format, coverage) all pass.

Coverage

  • 100% line coverage maintained

Checklist

  • npm run lint passes
  • Tests pass with 100% line coverage
  • No forbidden patterns used
  • Conventional Commit style applied

@avoidwork avoidwork self-assigned this Jun 20, 2026
@avoidwork avoidwork closed this Jun 21, 2026
@avoidwork avoidwork deleted the feat/tui-app-improvements branch June 21, 2026 12:16
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