Skip to content

fix: preserve editor route on reload#19

Merged
kiaquila merged 2 commits into
mainfrom
codex/012-editor-reload-state
Jun 14, 2026
Merged

fix: preserve editor route on reload#19
kiaquila merged 2 commits into
mainfrom
codex/012-editor-reload-state

Conversation

@kiaquila

Copy link
Copy Markdown
Owner

Summary

  • Keep reloads on #editor in the editor instead of briefly showing the landing view.
  • Mark the initial editor route before CSS paints, then restore the local draft after the editor shell is visible.
  • Add feature memory and document the editor reload route contract.

Validation

  • pnpm run preflight
  • Browser smoke: delayed app.js first-paint check, normal #editor reload with restored text, editor home route clear

Co-authored-by: Codex codex@openai.com

Co-authored-by: OpenAI Codex <codex@openai.com>
@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
dreamboard Ready Ready Preview, Comment Jun 14, 2026 9:37pm

@kiaquila

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e53a8b096f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/scripts/app.js
Comment on lines +551 to +554
showEditorShell();

if (draftBootstrapPromise) {
await draftBootstrapPromise;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Block edits until draft restore completes

When IndexedDB is slow (for example with an image-heavy saved board) and the user opens #editor on reload or clicks Go immediately after page load, this shows the editor before draftBootstrapPromise resolves. The toolbar is usable during that window, but any objects the user adds can then be replaced by canvas.loadFromJSON() when the old draft restore finishes, and those early edits are not autosaved because draftBootstrapComplete is still false.

Useful? React with 👍 / 👎.

Co-authored-by: OpenAI Codex <codex@openai.com>
@kiaquila

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 85b8872dd7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@kiaquila
kiaquila merged commit a0f9981 into main Jun 14, 2026
6 checks passed
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