Skip to content

Studio: the server caps a session name at 200 characters #1048

Done

Description

@danielrispler

Parent

#1036

What to build

Root cause 4 of #1036, on the server. A session name is capped at 200 characters, counted in Unicode scalar values, and the server's rename is the cap's one authority. A pure name check runs before the rename appends its StudioRename line:

  • it trims as today;
  • an empty or whitespace-only name still gives the empty name that resets the row to its folder's name;
  • a name of more than 200 characters is refused with a reason, which the page shows as it shows any refusal.

Nothing stored changes shape, and names already in the log stay as they are.

Acceptance criteria

  • A Rust table test of the name check:
    • 200 characters of Hebrew and emoji is accepted;
    • 201 is refused with a reason;
    • whitespace-only gives the empty name;
    • surrounding spaces are trimmed.
  • The rename refuses a 201-character name without appending to the event log.
  • docs/studio/behaviour/sessions.md (Rename) states the cap.
  • npm run check passes.

Reading

Touches

  • Files: server/src/session_view.rs, docs/studio/behaviour/sessions.md
  • Session: auto mode
  • Route: cheap · effort medium — one pure Rust check with its table test; settled rules, no UI, no stored-shape change

Activity

  1. added
    ready-for-agent
    on Dec 1, 2026
  2. self-assigned this
    on Dec 1, 2026
  3. danielrispler commented on Dec 1, 2026

    @danielrispler
    OwnerAuthor

    Implemented on the integration branch, PR #1051.

    Route outcome: cheap·medium opencode/deepseek-v4.1-flash-free → pass | 19m

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ready-for-agent

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions