Skip to content

A new draft's document is gray from the first message, not after a flash - #1147

Merged
yattias merged 2 commits into
mainfrom
ai-mode-workspace/starting-document
Oct 8, 2026
Merged

yattias merged 2 commits into
mainfrom
ai-mode-workspace/starting-document

Conversation

@yattias

@yattias yattias commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

After a new draft's first message, the document pane flashed a skeleton and the empty page before turning gray with "Starting the document…". A sent message now counts as the assistant working from the moment it leaves (chat being created, queued, posting), so an empty document shows the gray starting state from the first frame, even before the note has loaded. It stays until the draft starts streaming in; a turn that writes nothing leaves the empty document. Applies to any empty document, so a new chat on one behaves the same.

Also, from review feedback:

  • Below 1240px there is no icon rail on any page: a ☰ in the top bar opens the full sidebar. The workspace's own documents buttons are gone.
  • Below 1240px the workspace top bar reads "Draft" or "Published" instead of the document title.
  • Publish has a paper plane and a hover (lift, indigo, light streak, plane takes off).
  • The document toggle's chevron points right while the document shows, left while hidden.
  • On phones the document drawer matches desktop (byline, editable, floating Publish); tapping inside the publish dialog no longer closes it (SwipeableDrawer closed on any tap outside its own DOM).
  • The publish dialog explains each setting as the notebook's Details tab does.
  • Bigger chat header icons.

Stack

Stacked on #1145; merge that first, then this one.

🤖 Generated with Claude Code

@yattias
yattias requested a review from a team as a code owner October 6, 2026 21:10
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
web Ready Ready Preview Oct 8, 2026 2:47pm UTC

Request Review

yattias and others added 2 commits October 8, 2026 10:28
A sent message now counts as the assistant working from the moment it
leaves: while its chat is being created, while it waits for that chat to
open, and while it is posted. An empty document shows "Starting the
document" from then on, even before the note has loaded, instead of
flashing a skeleton and the empty page until the turn shows up. It stays
until the draft starts streaming in; a turn that writes nothing leaves
the empty document.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… publish dialog fixes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yattias
yattias force-pushed the ai-mode-workspace/starting-document branch from 1ec5134 to 64b9467 Compare October 8, 2026 14:46
@yattias
yattias force-pushed the ai-mode-workspace/chat-first branch from 7e70823 to 31a4965 Compare October 8, 2026 14:46
@sonarqubecloud

sonarqubecloud Bot commented Oct 8, 2026

Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

@yattias
yattias removed this pull request from stack #1146 October 8, 2026 15:07
Base automatically changed from ai-mode-workspace/chat-first to main October 8, 2026 15:29
@yattias
yattias merged commit 64b9467 into main Oct 8, 2026
3 of 6 checks passed
@yattias
yattias deleted the ai-mode-workspace/starting-document branch October 8, 2026 15:29

This branch was successfully deployed

1 active deployment
Preview — 64b9467c Deployed Oct 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant