Skip to content

Conversation

@uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Jan 9, 2026

Description

Remove dangling tool calls when compacting conversation.

resolves CON-5063
resolves CON-4969

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-review

Checklist

  • [] I've read the contributing guide
  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screen recording or screenshot

before.mp4
after.mp4

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Continue Tasks

Status Task State Actions
▶️ Create GitHub Issue (OS) Queued View

Powered by Continue


Summary by cubic

Fix conversation compaction to remove dangling tool calls, so assistant messages only include tool calls with valid results. Resolves CON-5063.

  • Bug Fixes
    • Drop assistant messages with toolCalls that lack matching toolCallStates with output.
    • Build compacted messages from the cleaned history to avoid orphan “waiting for approval” tool calls.

Written for commit b33b8a4. Summary will update on new commits.

@uinstinct uinstinct requested a review from a team as a code owner January 9, 2026 12:34
@uinstinct uinstinct requested review from sestinj and removed request for a team January 9, 2026 12:34
@continue
Copy link
Contributor

continue bot commented Jan 9, 2026

All Green - Keep your PRs mergeable

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts


Unsubscribe from All Green comments

1 similar comment
@continue-staging
Copy link

All Green - Keep your PRs mergeable

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts


Unsubscribe from All Green comments

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jan 9, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant