anomalyco / anomalyco/opencode

Long session titles produce unsavable export filenames

Open
#49,142 1 comment 0 reactions 1 assignee View on GitHub

@rekram1-node is already working on this.

Since Sep 15, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

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
  1. Create a session whose title contains 300 ASCII letters.
  2. Generate its session-export filename.
  3. Observe that the result is 305 bytes long.
  4. 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.

Operating System

All

Terminal

All

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.