Repository navigation
refactor: share streaming media tail boundary update - #146989
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 1:34 PM ET / 17:34 UTC (Revision 2). ClawSweeper reviewWhat this changesCombines complete and partial MEDIA marker checks into one buffering update and adds split-prefix coverage through final attachment parsing. Merge readiness✅ Ready for maintainer review The refactor remains applicable and preserves the existing parsing behavior. No actionable findings remain; member authorship and the maintainer label also exclude automated closure. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s streaming reply parser separates displayable text from unfinished directives arriving in model output. Buffered media markers remain available to final parsing, while ordinary text continues into reply delivery and live chat previews. flowchart LR
A[Model text chunks] --> B[Streaming directive parser]
B --> C{Unfinished or media tail?}
C -->|Yes| D[Buffer tail]
C -->|No| E[Reply text and previews]
D --> F[Next chunk or final parsing]
F --> G[Final text and attachments]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -8, Tests +13. Total +5 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the existing parser owner and distinct marker rules while sharing their identical boundary update. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR claims a behavior-preserving refactor, not a user-visible defect. Is this the best way to solve the issue? Yes: combining the unchanged predicates removes duplicate code without introducing another owner, API, or compatibility path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against adb6e518a442. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* commit '201f11afefdb19a9c75e9d3542bf7425c80df7a7': (141 commits) fix: keep catalog discovery scoped and execution lazy (#147159) fix: serialize reclamation worker shutdown with foreground writes (#147178) test(sessions): cover abrupt committed transcript recovery (#143984) fix: stop transcript storms during context overflow recovery (#147202) fix: reduce CPU overhead for small history and usage reads (#147205) fix: resume tasks after tools finish and the model times out (#147203) refactor(scripts): share SQLite reliability message waits (#146900) feat(exec): configure approval reviewer thinking and fastMode (#147192) test: remove redundant Bonjour module headers (#146981) refactor: share streaming media tail boundary update (#146989) refactor(tui): classify resume candidates once (#146983) improve: skip unused toast dismissal work (#147196) fix(linux): recover saved remote connections without replacing active sessions (#146047) fix: doctor stays silent when Windows state dir is under OneDrive (#123720) feat: announce successful Daybreak retries (#147146) feat(code-mode): reuse results across code cells (#147154) refactor(test): reuse CLI plugin fixture writer (#147186) test: skip unused compiler setup in routing fixtures (#147194) test: reuse LINE webhook runtime fixture (#146710) fix(code-mode): check automation and process result types (#147143) ...
What Problem This Solves
Streaming reply handling repeats the same tail-boundary update for complete and partial MEDIA markers.
User Impact
No delivery behavior changes. Incomplete markers stay buffered, complete markers remain available to final parsing, and bracket-related whitespace handling is preserved.
Why This Change Was Made
Combine the two existing predicates before their shared boundary update. The full-marker whitespace rule and narrower partial-prefix rule remain distinct. Production changes: −8 lines; tests: +13 lines.
Evidence