Skip to content

Conversation

@jinzhongjia
Copy link
Contributor

  • Add null check for updated_session result
  • Resolve promise with nil if session rename fails
  • Prevent index lookup on nil session object

- Add null check for updated_session result
- Resolve promise with nil if session rename fails
- Prevent index lookup on nil session object
@jinzhongjia
Copy link
Contributor Author

This resolve when cancel rename session, opencode.nvim will report an error

@jinzhongjia
Copy link
Contributor Author

It's just a simple conditional check return.

@sudo-tee
Copy link
Owner

sudo-tee commented Dec 7, 2025

Awesome thanks for the fix

@sudo-tee sudo-tee merged commit efe3d8c into sudo-tee:main Dec 7, 2025
@jinzhongjia jinzhongjia deleted the fix/session_rename_err branch December 7, 2025 17:26
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.

2 participants