Skip to content

Preserve Space editor selection and toolbar Code caret - #170

Merged
BunsDev merged 11 commits into
mainfrom
recover-space-focus
Oct 11, 2026
Merged

BunsDev merged 11 commits into
mainfrom
recover-space-focus

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Adding a block or applying formatting could let a queued focus callback collapse a newer selection, saving /Second instead of Second. The new Code toolbar also placed the caret after its closing fence.

BlockEditor now consumes one pending focus range in a layout effect, preserves formatting endpoints, and clears stale requests when Markdown changes externally. Toolbar Code insertion shares the slash command's caret position inside the fences; ordinary insertion and duplication retain end placement.

Verification: three native regressions reproduced the original failures; four focused checks passed afterward. Full build, workspace typecheck, 470 unit tests (one optional OpenKnowledge skip), all 171 desktop E2E tests with real Knowledge enabled, and all seven site tests passed. Independent source review is clear. The final verified tree is unchanged after aligning with merged UI #168.

Failure traces, save/relaunch coverage, and automated-versus-human acceptance limits are recorded in docs/reviews/2026-10-11-space-focus.md.

@vercel

vercel Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
modex Ready Ready Preview Oct 11, 2026 10:03am UTC

Request Review

@BunsDev BunsDev changed the title Apply Space editor focus before the next user edit Preserve Space editor selection and toolbar Code caret Oct 11, 2026
@BunsDev
BunsDev merged commit f33c4a7 into main Oct 11, 2026
5 checks passed
BunsDev added a commit that referenced this pull request Oct 11, 2026
Preserve unique historical Space/Knowledge verification outcomes and the original WorkOS/GitHub design proposal beneath a supersession banner. Record which unfinished snapshots are already delivered, while retaining their dirty source and probes.

Three documentation files only. Final independent review, build, typecheck and 475 unit passes (one optional skip); both required hosted macOS checks passed the full 175 desktop and seven site tests. The editor focus failure exposed by the first audit CI was fixed separately in #170.
@BunsDev
BunsDev deleted the recover-space-focus branch October 13, 2026 12:48

This branch was successfully deployed

1 active deployment
Preview — bec3f08c Deployed Oct 11, 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