3
43
Fork
You've already forked opencode.el
16

fix opencode--format-edit-diff(nil nil) #29

Closed
ceblan wants to merge 1 commit from ceblan/opencode.el:fix-diffs into main
pull from: ceblan/opencode.el:fix-diffs
merge into: sczi:main
sczi:main
First-time contributor
Copy link

This fix an error when opening a previous session that contains diffs. It seems that the json diff part was not being parsed right.

Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil) insert(nil) ... opencode--format-edit-diff(nil nil)

It's been coded by kimi k2-5 and opendoce not me.

This fix an error when opening a previous session that contains diffs. It seems that the json diff part was not being parsed right. ` Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil) insert(nil) ... opencode--format-edit-diff(nil nil)` It's been coded by kimi k2-5 and opendoce not me.
ceblan closed this pull request 2026年03月01日 22:37:42 +01:00
Owner
Copy link

I'm happy to use AI tools and AI-written code, I just want to fully understand the issue and solution or I'm afraid the project will become unmaintainable long-term. Do you have an example of the old-string and new-string that format diff is called with that gives an error?

I'm happy to use AI tools and AI-written code, I just want to fully understand the issue and solution or I'm afraid the project will become unmaintainable long-term. Do you have an example of the old-string and new-string that format diff is called with that gives an error?

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sczi/opencode.el!29
Reference in a new issue
sczi/opencode.el
No description provided.
Delete branch "ceblan/opencode.el:fix-diffs"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?