What if starting a thread was just a composer at the threads page, and it was styled more like this but with the same components we currently have
Composer redesign
Reference is the Claude app's chat box: one rounded well, the text field on top, a tools row underneath ([+] on the left, a model pill, the submit control at the right).
Plan:
- New
components/thread-composer.tsx(replacesnew-thread-form.tsx): the same pieces as today (workspace select, title, body, Ask Claude + model chip, image attach, Post / Post & run) laid out as ONE panel like the reply composer: title as a borderless first line, body textarea that grows as you type, then a.compose-barwith [image button as a round "+"-style glyph button] [workspace chip] [Ask Claude | model chip] … [Post & run]. - Render it on the home page under the "Threads" head and above the status bar / list, preselecting the workspace from the header dropdown (
?workspace=;general= no workspace). The "New thread" CTA and nav link go away;/threads/newredirects to/(keeping?workspace=) so old links still land on the composer. - CSS: a
.thread-composerblock reusing the.compose-panelrules; the.new-threadblock goes. - Mockup screenshots (phone + desktop, light + dark) since the app can't run here.
threadide@125582bDone on thread/06b680ff (125582b). Starting a thread is now a composer on the threads page; /threads/new is a redirect to /.
What it looks like (mockups over the real globals.css, the app can't run in the sandbox): one fill well like the reply panel. Title is the well's first line, the body starts one line tall and grows as you type, and the tools row underneath is [image, as a round glyph button like the reference's +] [workspace chip] [Ask Claude | model chip] … [Post & run]. Post & run is disabled until there's a title and a body. Enter in the title jumps to the body; Cmd/Ctrl+Enter posts.
Same components, nothing new: workspace select, title, body, Ask Claude + model, images, Post / Post & run all carried over from new-thread-form.tsx (now deleted) into components/thread-composer.tsx. The header's workspace dropdown preselects the composer's workspace (general = no workspace).
Two calls you may want to overrule
- The "New thread" nav link and the home CTA are gone, since the composer is the entry point now.
/threads/new?workspace=X→/?workspace=Xkeeps old links working. - The title stays as its own line. The reference has one field; I could derive the title from the body's first line instead, but that changes what a thread title is, so I left it for you to decide.
Under the hood: ThreadBrowser got a composer slot. Forms can't nest, so the status filter <select> now sits outside the search <form> and points back with form={id} (no-JS Enter submit still works). CSS is a small .thread-composer block reusing .compose-panel; the .new-thread block is gone.
Checked: tsc --noEmit clean; mockup screenshots at 390px and 1200px, light and dark. Not verified live: the auto-grow while typing and the no-JS filter submit.
Do we need the title?
Short answer: we need a title as data (thread list rows, crumbs, the PR body's "From thread …", link previews, email subjects, embeddings and Claude's context all read threads.title), but we don't need the user to type one.
Plan: drop the title line from the home composer and derive the title from the body on the server, like Slack/Linear do for untitled posts:
lib/thread-title.tsderiveTitle(body): first non-empty line (markdown#/list/quote markers stripped); if it's over ~80 chars, the first sentence; else clipped at a word boundary with "…".POST /api/threadsmakestitleoptional and derives it when missing, so API callers and forks keep working unchanged.- The composer becomes one textarea + tools row (Post & run enabled as soon as there's a body); CSS loses the title rules.
Nothing downstream changes: the stored title is still a plain string.
threadide@c7731b2No. The title line is gone (c7731b2 on thread/06b680ff); the composer is one text box plus the tools row, like the reference.
What still needs a title is the data, not the person. threads.title feeds the thread rows, crumbs, the PR body's "From thread …", link previews, email subjects, embeddings and Claude's context, so it stays a NOT NULL column. It's now derived on the server from the post itself (lib/thread-title.ts deriveTitle):
| You type | Title |
|---|---|
Do we need the title? | Do we need the title? |
# Composer redesign + a paragraph | Composer redesign |
| one long paragraph starting "The login page 500s when the session cookie is stale. Repro: …" | The login page 500s when the session cookie is stale. |
| a long first sentence with no full stop | first ~80 chars, cut at a word, with … |
- fix the **thing** | fix the thing |
| only whitespace / markup | New thread |
So a short first line followed by a blank line behaves like a subject line, and a one-paragraph post gets its first sentence. The opening post keeps the full text, so when the first line is short it shows twice on the thread page (as the h2 and as the post's first line); that's the same trade-off Slack/Linear make and I'd leave it unless it bothers you.
API: POST /api/threads still accepts title (optional now) and only derives when it's missing, so forks (which still prompt for one) and any other callers are untouched. UI: Post & run is live as soon as there's a body; CSS lost the title rules, the textarea gets the well's top padding and radius.
Checked: tsc --noEmit clean; deriveTitle run over the cases above; mockup screenshots at 900px light and 390px dark (the phone one is a static mock with a fixed-height textarea; in the app it grows with the text). Not verified live: an end-to-end post, since the app can't run in the sandbox.
Rejected: a Haiku-generated title (adds latency, the list would show a placeholder until it landed, and the PR title would depend on it). Easy to add later on top of deriveTitle as the fallback.
Merged threadide #118 by @osebo (merge, 3acd5b5).





