Skip to content

opentui: fatal: Added line count did not match for hunk at line 76 #3700

@duhduhdan

Description

@duhduhdan

Description

Error: Added line count did not match for hunk at line 76
    at parseHunk (../../node_modules/.bun/diff@8.0.2/node_modules/diff/libesm/patch/parse.js:112:18)
    at parseIndex (../../node_modules/.bun/diff@8.0.2/node_modules/diff/libesm/patch/parse.js:31:24)
    at parsePatch (../../node_modules/.bun/diff@8.0.2/node_modules/diff/libesm/patch/parse.js:121:13)
    at <anonymous> (src/cli/cmd/tui/routes/session/index.tsx:335:21)
    at <anonymous> (src/cli/cmd/tui/routes/session/index.tsx:343:61)
    at runComputation (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:734:3)
    at updateComputation (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:718:10)
    at runTop (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:828:21)
    at runQueue (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:900:61)
    at completeUpdates (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:855:20)...

OpenCode version

v1.0.7

Steps to reproduce

  1. trigger a Each 'tool_use' block must have a corresponding 'tool_result' block in the next message. error
  2. /undo
  3. error screen shows

Screenshot and/or share link

Image

Operating System

Fedora Linux 42 (Workstation Edition) x86_64

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions