Skip to content

Fix retained replies after a stop and stale Codex child steering - #5646

Closed
Waseemilyas wants to merge 1 commit into
get-bb:mainfrom
Waseemilyas:fix/retained-reply-and-codex-steer-2
Closed

Waseemilyas wants to merge 1 commit into
get-bb:mainfrom
Waseemilyas:fix/retained-reply-and-codex-steer-2

Conversation

@Waseemilyas

Copy link
Copy Markdown

Human comments

What was wrong

On BB 0.46.0, a Codex thread could reject steering because the host asked for a child turn id while Codex still had the root turn active. A manual stop also closed that turn in the timeline projection before a later completed assistant update was applied, so the saved reply stayed in the event log and never rendered. Separately, a Codex question title longer than 160 characters was rejected by ui.requestInput instead of being asked.

What changed

  • A completed assistant update that arrives after a stop or error is rendered. Late streaming deltas after the close are still dropped.
  • A resumed Codex child keeps its delegation identity when its next turn starts before the follow-up activity, so root steering keeps targeting the root turn.
  • Codex question titles are trimmed to the 160-character requestInput limit. The full question stays in the payload.

No protocol, dependency, or installed-package change. Live BB was not restarted and the user thread was not mutated.

How you verified

  • packages/thread-view/test/timeline-interruption.test.ts fails before the projection fix (expected the saved credentials sentence, received only Stopped manually) and passes after.
  • plugins/provider-codex translator tests (43) and async-question tests (5) pass, including the resumed-child and title-limit cases.
  • Read-only check of thread thr_sntrwk26wn: event 20187 is a completed root assistant message after system/thread/interrupted at 18661, and bb thread log --limit 8 omits that text from the rendered timeline on 0.46.0.

Fixes #

AGENT GENERATED

A manual stop closed the turn before a later completed assistant update
was projected, so the saved reply never rendered. A resumed Codex child
could also replace the root turn id, so steering targeted the wrong turn.
Question titles over 160 characters were rejected by requestInput.
@github-actions

Copy link
Copy Markdown
Contributor

Thanks @Waseemilyas for the PR. This repo approves new contributors before it reviews their PRs, so this PR now closes on its own. That is expected. Join the #contributors channel in Discord (https://discord.gg/kvBU6tJhcJ), post a link to this PR, and explain what it changes and why. A maintainer then adds you to the allow list and can reopen the PR.

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