Skip to content

Open and send drafts from the REPL Round editor - #1387

Draft
taras wants to merge 13 commits into
mainfrom
v10/rounds-01-05
Draft

taras wants to merge 13 commits into
mainfrom
v10/rounds-01-05

Conversation

@taras

@taras taras commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Why

Starting a round used the small inline Draft, and the old submission gesture competed with normal text editing. The REPL needs a dedicated editor that preserves the Sidekick Message while the operator drafts and sends a round.

What changes

  • ROUNDS-01 opens and focuses the Round editor through + New Round at wide and narrow sizes. The editor uses the approved inset and placeholder, and the unsent Sidekick Message returns after the round work.
  • ROUNDS-05 makes editor Enter insert a newline. Tab reaches Send, and keyboard and pointer Send use the existing admission and running paths. History sits directly below the round bar. At 72×20 the gold heading is visible on Draft Open and hidden with Send focused.
  • The affected Sidekick suites now drive the visible editor and Send paths. They still check reservation identity, attribution, focus, history, and retained text through closing and reopening.

What must stay true

Send admits the intended draft once. Empty and frozen sends refuse cleanly, and the user can read a long refusal without losing the draft. The existing reopen URL format is retained, with the submitted round selection restored as approved.

How to verify it

  • Both affected Sidekick suites passed on aa00d948d1f45b4269665f150c6855ff26dfbfc0 with 44 tests and 173 steps. Deno typechecking passed.
  • Two Bench preflights and five Markdown Bench runs passed. The nine matched checkpoints cover Draft Open, Send Focus, and Running at 160×36, 120×30, and 72×20, including both opening and Send gestures, newline editing, empty Send, Stop, and Message preservation.
  • The Planner and independent Codex Astra reviewer both passed the exact commit. Astra was the recorded fallback for Fable.
  • Follow-up e1c8e289 removes two unused layout exports. Full local lint and both Sidekick suites passed again on that commit (44 tests, 173 steps).

Scope

The visual comparison uses the pinned v10 reference and the approved Before 1584a779ca2be585c419c574bef47f3405d7ac45. The After and timing evidence is from aa00d948d1f45b4269665f150c6855ff26dfbfc0. GitHub targets the current main branch.

Risks and limitations

The paired latency report measures mounted Message typing. It does not measure the editor-focus transition.

REPL UI evidence

Checkpoint Fixture Viewport Action Reference Before After Comparison
draft-open-160x36 Scripted seven-round Sidekick seed and unsent Message marker 160 × 36 Open New Round with seven settled rounds and an unsent Message Reference draft-open-160x36 Before draft-open-160x36 After draft-open-160x36 accepted-deviation · Uses the approved candidate round-control placement.
send-focus-160x36 Scripted seven-round Sidekick seed and unsent Message marker 160 × 36 Type the two-line draft and focus Send Reference send-focus-160x36 Before send-focus-160x36 After send-focus-160x36 accepted-deviation · Uses the approved candidate round-control placement.
running-160x36 Scripted seven-round Sidekick seed and unsent Message marker 160 × 36 Submit Round 8 and observe its running bar Reference running-160x36 Before running-160x36 After running-160x36 accepted-deviation · Uses the approved candidate round-control placement. · Uses the approved candidate History chips and running glyph.
draft-open-120x30 Scripted seven-round Sidekick seed and unsent Message marker 120 × 30 Open New Round with seven settled rounds and an unsent Message Reference draft-open-120x30 Before draft-open-120x30 After draft-open-120x30 accepted-deviation · Uses the approved candidate round-control placement.
send-focus-120x30 Scripted seven-round Sidekick seed and unsent Message marker 120 × 30 Type the two-line draft and focus Send Reference send-focus-120x30 Before send-focus-120x30 After send-focus-120x30 accepted-deviation · Uses the approved candidate round-control placement.
running-120x30 Scripted seven-round Sidekick seed and unsent Message marker 120 × 30 Submit Round 8 and observe its running bar Reference running-120x30 Before running-120x30 After running-120x30 accepted-deviation · Uses the approved candidate round-control placement. · Uses the approved candidate History chips and running glyph.
draft-open-72x20 Scripted seven-round Sidekick seed and unsent Message marker 72 × 20 Open New Round with seven settled rounds and an unsent Message Reference draft-open-72x20 Before draft-open-72x20 After draft-open-72x20 accepted-deviation · Uses the approved candidate round-control placement. · Shows the approved gold Round 8 · draft heading on narrow Draft Open.
send-focus-72x20 Scripted seven-round Sidekick seed and unsent Message marker 72 × 20 Type the two-line draft and focus Send Reference send-focus-72x20 Before send-focus-72x20 After send-focus-72x20 accepted-deviation · Uses the approved candidate round-control placement.
running-72x20 Scripted seven-round Sidekick seed and unsent Message marker 72 × 20 Submit Round 8 and observe its running bar Reference running-72x20 Before running-72x20 After running-72x20 accepted-deviation · Uses the approved candidate round-control placement. · Uses the approved candidate History chips and running glyph.

Mounted typing latency

Viewport 200 × 52. Milliseconds from character dispatch to the completed emulator write containing the changed Message value.

Workload Samples per run Before median After median Δ median Before p95 After p95 Δ p95
small 30 10.762 10.981 0.219 11.364 12.064 0.700
wrapping 30 19.413 17.323 -2.090 20.614 18.697 -1.917

This branch has not been deployed

No deployments
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