gm-input expansion built from the roadmap (DECISIONS #9's strictness ruling): the GM's line and ask answers expand at ingestion -- @PC/@Package and $vars resolve before the log, an unresolved token refuses the turn with a 400 naming it and nothing appended; the log records the expanded line, keeping continuation carryovers expansion-free by construction; smoke +4 (the $Bogus refusal, the log provably unchanged, a live sigil turn, the expanded line in the log) -- 115/115 all pass; the GM input gains a highlight overlay (the setup editor's stack pattern transplanted): *italics* render italic, **bold** renders bold, @PC/@Package gold, $vars green, every character kept on screen (the asterisks too) so the caret never desyncs, bold/italics matched per-line like the transcript renderer; the box rekeys -- Enter is a plain newline, Ctrl+Space sends, placeholder updated; and a pre-existing bug the live pass caught: failed-action banners were wiped by the render() that follows every action (the runGone trap) -- sendTurn, sendAnswer, and startRun now set the banner after the render; browser-proven end to end: tokens highlight in place, Enter newlines, the refusal loop shows the banner and restores the line un-eaten and still highlighted, the sigil expands in the log, zero console errors; the roadmap item struck as built, DECISIONS #9 amended to same-day-built, README's substitution paragraph and AGENTS' identity-model bullet carry the live-input rule; typecheck green on both programs, check-repo clean
This commit is contained in:
+24
-1
@@ -393,7 +393,30 @@ footer {
|
||||
display: none;
|
||||
}
|
||||
body.play footer { display: flex; }
|
||||
#gm-input { flex: 1; resize: none; }
|
||||
#gm-stack { position: relative; flex: 1; display: grid; min-width: 0; }
|
||||
#gm-stack.off { opacity: 0.4; }
|
||||
/* the highlight overlay: the setup editor's stack pattern -- a pre
|
||||
behind a transparent-text textarea, identical metrics, so the
|
||||
tokens light up in place without moving the caret */
|
||||
#gm-hl, #gm-input {
|
||||
grid-area: 1 / 1;
|
||||
margin: 0;
|
||||
padding: 5px 8px;
|
||||
font: inherit;
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: break-word;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 4px;
|
||||
}
|
||||
#gm-hl { pointer-events: none; overflow: hidden; color: var(--text); border-color: transparent; background: transparent; }
|
||||
#gm-input {
|
||||
background: transparent;
|
||||
color: transparent;
|
||||
caret-color: var(--text);
|
||||
resize: none;
|
||||
overflow-y: auto;
|
||||
}
|
||||
#gm-input::placeholder { color: var(--dim); }
|
||||
#gm-send { padding: 5px 18px; }
|
||||
#busy { color: var(--dim); font-size: 12px; font-style: italic; white-space: nowrap; align-self: center; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user