Skip to content

Show running notes and a comparison table - #35

Merged
a-Fig merged 3 commits into
mainfrom
issue-18-new-views
Nov 13, 2026
Merged

a-Fig merged 3 commits into
mainfrom
issue-18-new-views

Conversation

@DhruvaKanna07

@DhruvaKanna07 DhruvaKanna07 commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #34

Why

#9's candidate demo ends on action items, and today the only way to show them is a slide that the next visual replaces. Running notes keep decisions, owners' tasks and open questions for the whole call. The comparison table covers the moment a room weighs options, which today can only become bullets. These are the top two of the ranked shortlist on #18.

Change

  • agent.js: two display tools, add_notes (only the new decisions / action items / open questions; the page keeps the rest) and show_comparison (2-4 options × up to 6 criteria, optional pick and one-line why). Two lines in the prompt's tool list, and the one-visual rule now names notes and comparison. Notes are preferred over show_slide for decisions and action items.
  • public/views/notes.js + .css, public/views/compare.js + .css, public/views/mount.js: each view mounts its own <section class="view"> and stylesheet on first use, so index.html, style.css and the shared rendering code (cuddly-lobster's) are untouched.
  • public/app.js: two imports and two dispatch cases, nothing else.
  • Safety (How do we keep what Cue shows right, and safe for a room? #14): model text only reaches the DOM through textContent; lengths are clipped and counts capped page-side (4 options, 6 rows, last 6 items per notes column with "+N earlier"). innerHTML is used only for each module's own fixed markup.
  • Every think request carries the notes so far as screen.notes, so Claude sees them while another visual is up too. This is one field in maybeThink's request body, which is cuddly-lobster's code; it was offline when I tried to tell it. The page also drops repeats (on any letters or digits, so CJK and accents work).
  • Adding to the notes takes the screen only when it's idle or already on the notes. A decision spoken mid-diagram or mid-video is added quietly, and add_notes with nothing new shows the notes ("Cue, show the notes").
  • Notes list newest first and drop the oldest until each column fits, with "+N earlier". The comparison tightens its type, then shortens cells, until it ends above the caption.

Spend: the tool list grows by two schemas, so the cached prompt prefix is a little larger. No new dependencies or services.

Screenshots

Rendered with /api/think mocked in Playwright at 1280×720, ?test=1, test panel hidden.

Notes, first update:
notes-first.png

Notes, second update (new items glow for about 4 s, slow enough for 15 fps):
notes-update.png

Comparison with a pick:
comparison-pick.png

Comparison at the caps, 4 options × 6 criteria, no pick (the caption is left over from the previous turn):
comparison-dense.png

After the review fixes (4a9dfd5):

Six long decisions: newest first, the oldest folded into "+3 earlier". The open questions show café and caf kept apart and an all-CJK item kept:
notes-full.png

The worst case, 4 options × 6 criteria with every cell at the 60-character cap plus a why line, now ends above the caption:
comparison-tight.png

A decision added while the comparison was up stayed off screen. An empty add_notes with no mention of the notes changed nothing; after the line "can we see the notes again", it brought the notes up (rebased, so in the new brand colours):
notes-shown-on-request.png

Verified

  • npm run check passes.
  • With /api/think mocked in Playwright: the request after the first notes carried screen.notes, and none was sent before there were any. A quiet add left the comparison on screen. add_notes with empty lists switched to the notes.
  • The four screenshots above, no console or page errors.
  • Not checked: a real Claude run choosing these tools (the replay in evals/ needs a rerun against this prompt, When does Cue act unprompted, and when does it stay quiet? #10), and legibility on a real Meet call's screen (What else should Cue be able to show? #18).

Review

Opus review by eminent-stencil covered the first commit (c937c77, the first commit after rebases, same content). Its findings 1–6 are fixed in the second commit (4a9dfd5 before rebase), which eminent-stencil said it would check itself.

elastic-granola's replay on 4a9dfd5 (#35 (comment)): the review's two risk cases pass (action items go to notes, no reworded duplicates). It found one bug: an add_notes with every list empty on "back to the budget" and "thanks everyone" took the screen unasked. Fixed in the third commit, 8edf172: an empty call now does anything only if one of the last three transcript lines says "note(s)". Checked in Playwright; not yet rerun through the replay. The branch is rebased on main after #36, #38, #41 and #45.

🤖 Generated with Claude Code

DhruvaKanna07 added a commit that referenced this pull request Nov 13, 2026
DhruvaKanna07 added a commit that referenced this pull request Nov 13, 2026
@DhruvaKanna07

Copy link
Copy Markdown
Collaborator Author

#10 replay against this PR's prompt (4a9dfd5)

elastic-granola (#10), with claude-sonnet-5-5 at medium effort, running agent.js at 4a9dfd5 against the 8 transcripts in evals/ (38 scored ticks). The replay was taught add_notes and show_comparison first: it keeps notes and drops repeats the way public/views/notes.js does, and screen.notes is sent on every tick. Those replay changes go up in #10's next PR. This is one run, so expect some noise.

Score: 11 of 38 (helpful 10, right-quiet 19, annoying 9, missed 0). The same transcripts on main's prompt scored 33 of 33 before the notes transcript was added.

The two cases the review flagged both pass:

  • Slides for action items: plan-forming now puts Ben's, Chloe's and Dev's tasks into add_notes with owners and deadlines, not a slide. slide-churn's plain brainstorm still gets show_slide.
  • Duplicate notes: in notes-repeat (new), the decision, the task and the open question are each added once. When they're restated in a recap ("So just to recap, the database is Postgres, and the migration script is on me…"), Cue stays quiet both times. There were no reworded repeats anywhere in the run.

The 9 annoying ticks are all add_notes. They fall into two groups.

  1. add_notes with empty lists, which the page treats as "show the notes": 2 ticks, a real bug. It fired on "Anyway, back to the budget…" and on "Alright, that's it, thanks everyone." Nobody asked for the notes, but they took the screen anyway. The prompt says to call it with empty lists only when someone asks to see the notes, and the model still did it. A code gate would make it reliable: honour an empty add_notes only when a recent line mentions "notes". The alternative is a separate show_notes tool, so that "nothing new" and "show them" can't be confused.

  2. Notes my old answer key marked quiet: 7 ticks, mostly judgment calls. Most are real notes:

    • "Leo: check the error logs after this"
    • "Bump the Docker base image to Node 24"
    • "Book the offsite early"
    • "Which dates? Decide next week"
    • "Prototype both"
    • standup tasks

    Two are weaker:

    • "What was decided about the pricing tiers last week?" is a memory lapse, not an open question.
    • The standup tasks are status updates, not commitments.

    Tyler's new direction on When does Cue act unprompted, and when does it stay quiet? #10 (act unprompted, like the intern running the projector) makes most of these right. I'm rescoring the transcripts for that in When does Cue act unprompted, and when does it stay quiet? #10. So I don't count group 2 against this PR.

Also seen: on disagreement, one turn called show_research and added an open question to the notes. Because the notes update quietly while research is up, this stays within the one-visual rule in practice.

Latency: median 2.1 s; research ticks 9–23 s.

My read: the notes and comparison prompt does what #18 wants. Group 1 should be fixed before merge, or a follow-up filed for it. Group 2 needs no change here.

DhruvaKanna07 and others added 3 commits November 13, 2026 13:45
#9's candidate demo ends on "a slide of action items", but a slide is replaced by the next
visual and rebuilt from scratch. Running notes keep decisions, action items with owners and open
questions for the whole call; each add_notes call appends only what is new and the page drops
repeats, so a stateless think() can keep adding without restating everything.

show_comparison covers the moment a room weighs options, which today can only become bullets.
Cells are short fixed fields with an optional pick, built from text nodes only (#14).

Each view is its own module in public/views/ with its own stylesheet and mounts its own
<section>, so index.html, style.css and the shared rendering code stay with cuddly-lobster's
work; app.js only gains the two dispatch cases.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…34

- Notes list newest first and drop the oldest until a column fits, since six long items ran
  past the column and hid the one just added.
- Every think request carries the notes (screen.notes), so Claude can still see them, and avoid
  reworded repeats, while another visual is up; a count in recent actions wasn't enough.
- Adding to the notes takes the screen only when it's idle or already on the notes. Cue now acts
  mostly unprompted (#10), so a decision spoken mid-diagram or mid-video no longer pulls that
  away. add_notes with nothing new shows them, for "Cue, show the notes".
- The prompt stops sending decisions, action items and options to show_slide, and the caption
  example no longer says "see slide".
- Dedupe keys keep any letter or digit, so all-CJK items are no longer dropped and "café" no
  longer matches "caf".
- The comparison tightens its type, then shortens cells, until it ends above the caption. Views
  now wait for their stylesheet before measuring, which the first render didn't.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…es", for #34

elastic-granola's replay on 4a9dfd5 caught the model sending add_notes with every list empty on
"back to the budget" and "thanks everyone", and the page took both as "show the notes", taking
the screen unasked (2 of 38 ticks). The prompt line didn't prevent it, so the page now checks:
an empty call does anything only when one of the last three transcript lines says "note(s)".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@a-Fig
a-Fig merged commit d731843 into main Nov 13, 2026
1 check passed
@a-Fig
a-Fig deleted the issue-18-new-views branch November 13, 2026 21:46
DhruvaKanna07 added a commit that referenced this pull request Nov 13, 2026
…stage, for #46

A slide was always a title and bullets, so a single number, a before/after or a quote came out
as a bullet list. show_slide now takes a layout (bullets, stat, two_columns, quote, section),
each with typed fields that the page builds from text nodes, never model HTML (#14).

Diagrams used Mermaid's default sizing, so a wide flowchart shrank until its labels were
unreadable in a Meet tile, and a source that didn't parse left the old screen up with no sign.
diagram.js reads its theme from the --cue-* tokens, sizes the SVG to the box (flipping a
flowchart's direction when that reads bigger), quotes unquoted punctuated labels before giving
up, and otherwise shows the labels as plain chips and tells the next tick it failed. The same
title grows the diagram in place and flashes the new nodes, so a plan built up over a few
minutes stays one picture.

Both renderers move out of app.js into public/views/ on #35's mount.js, leaving dispatch lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
DhruvaKanna07 added a commit that referenced this pull request Nov 13, 2026
Tyler's direction on #10 (2026-11-13): Cue mainly acts without being
asked, like the intern in charge of the meeting's projector; "Cue, ..."
stays as a direct line. The prompt said "doing nothing is usually right"
and only named "can someone check..." as a trigger.

The prompt now lists what to put up unasked (questions wondered aloud,
guessed numbers, options with prices, timelines said in words, factual
disagreements) and what still gets nothing (chatter, reactions, status
updates, answered questions, the team's own history, asks aimed at a
teammate). Two failures the replay found get their own rules: captioning
"already on screen" at a repeated request, and bringing back an earlier
research page after a reaction. A lone caption is no longer an answer.

The replay gains Tyler's first real Meet call (split at its requests),
an unprompted transcript, a notes-repeat transcript for #35, add_notes
and show_comparison state, "quiet or X" judgments for ticks where
either is fair, and REPLAY_AGENT to score another branch's agent.js.

Sonnet 5.5 medium, 55 ticks: main's prompt 44, this prompt 51, with no
annoying ticks; the 2 misses need #35's add_notes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

Show running notes and a comparison table

2 participants