Skip to content

SCA-3429: Finish conversations v3 prefixes before retained speech - #25895

Merged
Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:agent/m1-studio-codex-sol/770c12c6e493
Nov 20, 2026
Merged

Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:agent/m1-studio-codex-sol/770c12c6e493

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Finish fresh fragments that end before the original planned window's last line. If retained speech owns the final line, its fresh prefix enters processing on the current reconcile pass.
  • Add the dated lifecycle note for fix(conversations-v3): plan at most one open window per owner #25800 and this follow-up, including rollout state, rollback, and recovery evidence.

Verification

  • The regression reproduces on main, where the prefix is in_progress. With the fix, the same prefix is processing and the finished row retains its ID and speech.
  • bash backend/test.sh backend/tests/unit/test_conversations_v3*.py passed all 578 tests across 19 files.
  • scripts/pr-preflight --pr-body-file ../pr-body.md passed all 38 checks.

Product invariants affected

none

Failure-Class: none

View guided diff

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T19:23:30.627157Z 785cb4b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 785cb4b836

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 715 to +716
if gaps and not window.get('_keep_unmatched_together'):
pieces.append({**window, **fresh_metadata, 'lines': gaps, 'manual_end': False})
fresh.append({**window, **fresh_metadata, 'lines': gaps, 'manual_end': False, 'finished': True})

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve the open edge for overlapping fresh speech

With default timing, overlapping captures can place a fresh turn at 40–380s before a retained turn at 60–70s, because outline.stretches sorts by start time. At t=385s the stretch is still open, but this unconditional finished=True closes the only fresh fragment even though it contains the latest speech end. This sends active speech into processing early and locks its boundaries: extending the fresh turn to 390s on the next pass leaves build's finished_at at 380s, whereas the parent keeps the row in_progress and advances it. Preserve the open edge using speech end times rather than solely whether a retained line follows in start order.

Useful? React with 👍 / 👎.

@Git-on-my-level
Git-on-my-level merged commit db3307a into BasedHardware:main Nov 20, 2026
58 checks passed
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