A New Project run's title is its description cut at 48 characters #388

Closed
opened 2026-11-04 19:28:15 -05:00 by cmoriarty · 1 comment
Owner

What happens
A New Project run's title is the first 48 characters of its description. Run 172 reads # Build "Scratch" — a multiplayer online card ga, with the Markdown # and a word cut in half. The same text shows in the tab and the run bar.

Fix

  • Have the backend's model write a short title from the description.
  • Keep the first-line title as the fallback when the model doesn't answer, so starting a run never waits on it or fails.
  • In the run bar, draw the title in white and a little bigger, still smaller than the project name.

Done when

  • A New Project run from a long description gets a short, whole title, with no Markdown.
  • With the backend down, the run still starts, with the fallback title.
  • The run bar's title is white, sized between its old size and the project name.

Where to look: _derive_name in src/osf/api/routes.py; data-bar-title in ui/src/components/RunBar.tsx.

Reported by the owner from run 172.

**What happens** A New Project run's title is the first 48 characters of its description. Run 172 reads `# Build "Scratch" — a multiplayer online card ga`, with the Markdown `#` and a word cut in half. The same text shows in the tab and the run bar. **Fix** - Have the backend's model write a short title from the description. - Keep the first-line title as the fallback when the model doesn't answer, so starting a run never waits on it or fails. - In the run bar, draw the title in white and a little bigger, still smaller than the project name. **Done when** - A New Project run from a long description gets a short, whole title, with no Markdown. - With the backend down, the run still starts, with the fallback title. - The run bar's title is white, sized between its old size and the project name. Where to look: `_derive_name` in `src/osf/api/routes.py`; `data-bar-title` in `ui/src/components/RunBar.tsx`. *Reported by the owner from run 172.*
Author
Owner

Shipped in PR 389, live on production at b5d12bd. A New Project run with no name asks its own model for a title after it's created. The first-line title is cleaned and cut at a word, and it stays if the model doesn't answer. The bar's title is white at 15px, and the project name stays 17px.

Evidence: tests cover each backend's request shape, a refusal, and the title arriving through the real reducer; the one-shot-tracked sim passes.

Not checked: a real model writing a title, because trogdor is down. Watch the next New Project run. A reasoning model that uses its 4,000 tokens before answering leaves the first-line title.

Limits: Free runs keep the first-line title, because the request would spend quota and could reach a provider a private repo is kept from. Existing runs keep their old titles.

Shipped in PR 389, live on production at b5d12bd. A New Project run with no name asks its own model for a title after it's created. The first-line title is cleaned and cut at a word, and it stays if the model doesn't answer. The bar's title is white at 15px, and the project name stays 17px. **Evidence:** tests cover each backend's request shape, a refusal, and the title arriving through the real reducer; the `one-shot-tracked` sim passes. **Not checked:** a real model writing a title, because trogdor is down. Watch the next New Project run. A reasoning model that uses its 4,000 tokens before answering leaves the first-line title. **Limits:** Free runs keep the first-line title, because the request would spend quota and could reach a provider a private repo is kept from. Existing runs keep their old titles.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/braid#388
No description provided.