Skip to content

fix: prevent duplicate historical events and filter reasoning parts#435

Merged
FL4TLiN3 merged 1 commit intomainfrom
fix/tui-display-bugs
Jan 19, 2026
Merged

fix: prevent duplicate historical events and filter reasoning parts#435
FL4TLiN3 merged 1 commit intomainfrom
fix/tui-display-bugs

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • fix(tui): prevent duplicate display of historical events on continue
    Changed the execution loop to only pass historical events on the first iteration.
    Subsequent iterations no longer receive historical events since the previous TUI
    output remains visible on screen, preventing duplicate display of query/complete
    activities.

  • fix(runtime): filter reasoning parts for non-Anthropic providers
    Added filtering to remove reasoning parts from message history when sending
    to OpenAI, Azure OpenAI, DeepSeek, or Ollama providers. This prevents the
    "Non-OpenAI reasoning parts are not supported" warning from AI SDK when
    resuming runs that were previously executed with Anthropic's extended thinking.

Test plan

  • Added unit tests for reasoning part filtering
  • Existing tests pass
  • Manual test with perstack start and interactive tool continue flow

🤖 Generated with Claude Code

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 88.23529% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
apps/runtime/src/llm/executor.ts 88.23% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

- fix(tui): prevent duplicate display of historical events on continue
  Changed the execution loop to only pass historical events on the first
  iteration, preventing duplicate query/complete activities.

- fix(runtime): filter reasoning parts for non-Anthropic providers
  Added filtering to remove reasoning parts from message history when
  sending to OpenAI, Azure OpenAI, DeepSeek, or Ollama providers.
  This prevents "Non-OpenAI reasoning parts are not supported" warnings.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 force-pushed the fix/tui-display-bugs branch from ebaecb9 to 05427b2 Compare January 19, 2026 00:56
@FL4TLiN3 FL4TLiN3 merged commit cf48446 into main Jan 19, 2026
9 checks passed
@FL4TLiN3 FL4TLiN3 mentioned this pull request Jan 19, 2026
@FL4TLiN3 FL4TLiN3 deleted the fix/tui-display-bugs branch February 25, 2026 13:37
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.

2 participants