Skip to content

Put the research answer first, in type a Meet tile can show - #41

Merged
a-Fig merged 1 commit into
mainfrom
research-answer-first
Nov 13, 2026
Merged

a-Fig merged 1 commit into
mainfrom
research-answer-first

Conversation

@a-Fig

@a-Fig a-Fig commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Closes #40

Why

In a real Meet call, Tyler's verdict on the research view was "this looks like shit". The answer was the smallest thing on screen. Most of the frame was a scraped page broken into run-together table text, the "quote" was a row of | pipes, and nothing survived Meet shrinking the screen share into a tile.

Change

The research view leads with the answer, and the page becomes evidence:

  • Answer: the part of the model's title after its colon, at 96 px ("~83.5 million"). The part before the colon becomes the kicker ("Germany population"). Under it: the summary as one line of context, and a source chip with the site's icon and domain.
  • Evidence: one excerpt card. It shows the page title, then the paragraph around the quote with the quote marked, cut at word boundaries. With several verified quotes it cycles every 7 s, with dots.
  • Only verified quotes (How do we keep what Cue shows right, and safe for a room? #14's research part, handed over by swirling-tidepool): a quote shows only if all of it is on the page, after whitespace and quote-mark normalisation. The 60-character prefix fallback, which produced the cut-off highlights, is gone.
  • Blocked sites and paywalls: with no verified quote, the answer is shown alone and larger, so the screen looks intended rather than half-empty.
  • Race fix: a generation counter stops an older /api/page fetch from overwriting a newer research view (from swirling-tidepool's Opus review).
  • Captions: a plain live-caption bar, 30 px white on black, without the 💬.
  • Status pill: 20 px, and it shows BOT_NAME. The "Quiet Intern" in the old screenshot came from Tyler's .env, which is now fixed.

Borrowed from:

  • Google's answer box: the answer as one big line, with the source as a chip.
  • Keynote and TV lower-thirds: one idea per screen, at back-of-room sizes.
  • Perplexity: answer first, with numbered sources, never the raw page.
  • Featured snippets: the paragraph with the matching sentence marked.
  • Meet and YouTube live captions: the caption bar.

Not changed: agent.js, the show_research schema, server.js. Only public/.

Screenshots

Before, from Tyler's call:

research-before.png

After, with the same answer. One of the three quotes (the | row) wasn't on the page, so it was dropped, which is why there are two dots:

research-new.png

After, when the site blocks the fetch:

research-blocked.png

At Meet-tile size (427 px wide), before and after:

tile-before-after.png

Verified

  • npm run check passes.
  • Rendered in headless Chromium at 1280×720 on ?test=1, with /api/think and /api/page mocked: no Claude or Recall spend. The page text is a paraphrase of Destatis, not a real fetch.
  • Checked: the colon split, the pipe-row quote dropped because it's not on the page, the excerpt windowing and ellipses, cycling with dots, the blocked-site layout, and the caption clearing the card.
  • Not checked: a real call, and real pages from /api/page. Real reader-mode paragraphs can be long, and the card clamps to 7 lines.

Review

Skipped: public/-only change (CLAUDE.md skip rule).

🤖 Generated with Claude Code

Tyler's verdict on the research view in a real call: "this looks like shit". The answer was the
smallest thing on screen. Most of the frame was a scraped page that reader mode had broken into
run-together table text, the highlighted "quote" was a row of pipes, and nothing was big enough
to read once Meet shrank the screen share into a tile.

The view now leads with the answer: the part of the title after its colon, at 96 px. Under it go
the kicker, a line of context and a source chip with the site's icon (Google's answer box,
keynote type sizes). The evidence is one excerpt card: the paragraph around a quote, with the
quote marked, cycling through quotes with dots (Perplexity's sources, a featured snippet).

Only quotes found whole on the page are shown, and the 60-character prefix fallback that
produced cut-off highlights is gone. That's #14's research part, which swirling-tidepool handed
over. When nothing is verified (blocked sites, paywalls), the answer alone is shown larger, so
the screen looks intended. A generation counter stops an older page fetch from overwriting a
newer view. Captions become a plain live-caption bar, and the status pill and secondary text get
bigger and higher-contrast.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
a-Fig pushed a commit that referenced this pull request Nov 13, 2026
@a-Fig
a-Fig merged commit 2ef042d into main Nov 13, 2026
1 check passed
@a-Fig
a-Fig deleted the research-answer-first branch November 13, 2026 21:31
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.

Research view puts a broken scraped page first and the answer last

1 participant