replay: a sentence that finishes after a mid-sentence tool call splits live but not after a reload
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript
- Domain
- backend-api-design
Research direction
Read the implementation of postToolSplit, the live continuation split, and the replay layout that uses splits: [{at, toolUseId}] on response history entries; the issue also points to PR #9024 and rule #4999. Trace when a later streamed delta accepts a sentence boundary and compare that with the recorded tool offsets. Done means replay splits at the same boundary as live without restoring the duplication or loss cases from #9024.
Written by the indexing model from the issue text.
Description
Summary
After #9024, a reload lays a reply's text out around its tool cards using the split points the server records at each tool_start (splits: [{at, toolUseId}] on the response history entry). The layout applies the same sentence rule (postToolSplit, #4999) that the live continuation split uses, but it evaluates the rule only at the recorded tool offsets.
Live, the rule is re-checked on every later delta while a tool card sits below the reply's bubble. So in a turn that streams "Let me", then calls a tool, then streams " finish." and " Next.", live renders "Let me finish." above the card and " Next." below it. After a reload, all of "Let me finish. Next." renders above the card. The text is complete and appears once; only where it splits differs from live.
Desired
A replayed reply splits where the live client split it, including a split that the sentence rule accepted on a delta after a mid-sentence tool call. One option: the server records the first sentence-ending delta boundary after a rejected split point, so the client can split there. The fix must keep the live and replay layouts on the one shared rule and must not reintroduce the #9024 duplication or loss cases.
Source
Codex review finding 5 and reviewer A on the #9024 PR (accepted limitation).
- Dominant language
- JavaScript
- Stars
- 7
- Forks
- 1
- Avg merge
- 2h 3m
- Merged PRs (30d)
- 333
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from blamechris/chroxy
-
from-review tech-debt testing
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
blamechris/chroxy#9520 ·
Maintainers usually reply within 1 day
-
priority: low server
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
blamechris/chroxy#9340 ·
Maintainers usually reply within 1 day
-
documentation from-review
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
blamechris/chroxy#9237 ·
Maintainers usually reply within 1 day
-
agent-control client: notify() docstring should say the outbound gate applies only in principal modeOpenenhancement from-review
Difficulty 1/5 Under an hour Newbie friendliness 80/100
blamechris/chroxy#9227 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
blamechris/chroxy#9108 ·
Maintainers usually reply within 1 day
All issues in blamechris/chroxy
Similar issues
-
CONTRIBUTING rules Node out in step 0, then tells client-side contributors to run node --test, which is what CI gates onPossibly taken @yadavraj2001 claimed this today. Opendocumentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
juandresrodca/AdminForge#73 · 1 comment ·
Maintainers usually reply within 1 day
-
Windows 内置更新报“更新进程启动确认超时”:Explorer ShellExecute 冗余的 -WindowStyle Hidden + -EncodedCommand 触发卡巴斯基挂起Openbug status/needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
WhiteBr1ck/agy-powertools#397 ·
Maintainers usually reply within 1 day
-
icon submission
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
kubai087/kubai-icons#203 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
christian-raj/S-Aloha#502 ·
-
Mend: dependency security vulnerability
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ManageIQ/manageiq-ui-service#2303 ·
Maintainers usually reply within 1 day