You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Long session titles produce unsavable export filenames #49142
Session export filenames have no length limit after title sanitization. A 300-character ASCII title produces a 305-byte filename including .json, exceeding the common 255-byte filename-component limit and causing saves to fail with ENAMETOOLONG on affected filesystems. The sanitized basename should be capped while preserving the .json extension.
Plugins
None
OpenCode version
1.18.30
Steps to reproduce
Create a session whose title contains 300 ASCII letters.
Generate its session-export filename.
Observe that the result is 305 bytes long.
Try to create a file with that name on a filesystem with a 255-byte component limit.
Expected: the suggested filename fits within the filesystem limit and retains .json.
Actual: saving fails because the generated filename is too long.
Screenshot and/or share link
Not applicable; the filename length and filesystem error reproduce the issue directly.
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.
Activity
sdivyanshu90 commentedon Sep 19, 2026
Could you please review this issue?
thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊