opencode
opencode copied to clipboard
fix: make time optional in session update endpoint
Summary
The time field in the PATCH /session/:sessionID endpoint was required, but callers like DialogSessionRename only send title when renaming a session. This caused validation failures.
Changes
- Made
timeoptional in the session update request body schema - Regenerated SDK to reflect the change
Why this fix
This is a PATCH endpoint for partial updates - both title and time.archived are independent optional fields. The handler already used optional chaining (updates.time?.archived) expecting time to be undefined.
This PR was written with AI assistance (Claude Opus 4.5 via OpenCode).