Skip to content

fix(app): show quotes instead of attachment counts in the prompt queue - #67544

Merged
usrnk1 merged 2 commits into
devfrom
queue-quote-rows
Dec 2, 2026
Merged

usrnk1 merged 2 commits into
devfrom
queue-quote-rows

Conversation

@usrnk1

@usrnk1 usrnk1 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

A queued prompt made only of a quote showed as "1 attachment" in the queue panel, because quotes and browser notes were counted together with files.

Queue rows now count quotes (browser notes count as quotes) separately from attachments (files and images):

  • With typed text, the row shows the text and then the counts: "Explain this part 2 quotes, 1 attachment".
  • Without typed text, the row shows the first quote with the same bar as in the message bubble, then its comment. If there is no quote, it shows the first note's icon and label. Further quotes read "+2 quotes".
  • Files and images alone still read "2 attachments".

queuedPromptRows returns the shown quote or note as preview and the counts as quotes and attachments. The counts are joined with Intl.ListFormat. New strings: session.queue.quotes and session.queue.moreQuotes, English only for now, so other locales fall back to English. The gap between a row's text and its counts goes from 16px to 8px so the counts sit next to the quote.

No feature flag: this is a display fix in the queue panel.

How did you verify your code works?

  • bun typecheck in packages/app: passes
  • bun test for src/session/composer and src/runtime/i18n: 142 pass, 0 fail
  • bun run check from the root: 37/37 tasks pass
  • bun run lint:changed origin/dev: 0 problems
  • Before/after captured from the real SessionQueuePanel in the Lab, fed through queuedPromptRows with the same eight inbox items (dark theme, same viewport). The before image is from origin/dev.

Screenshots / recordings

Rows, top to bottom: quote only, quote with a comment, quote with another quote and a note, quote with 2 files, text with a quote, text with 2 quotes and a file, note only, text with 2 files.

Before:

After:

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix looks sound. Quotes and notes are now counted separately from files in queuedPromptRows. A row with no typed text shows the first quote, or else the first note, as a preview. Edits in progress keep counting only the files and images in the composer, which matches the earlier behaviour. I checked the row model with the composer and i18n unit tests (142 pass) and tsc -b (passes). I did not render the panel myself; your Lab before/after images cover the visual side.

Public API is unchanged: this only touches app code and adds English i18n keys.

No blocking concerns.

@usrnk1
usrnk1 enabled auto-merge (squash) December 2, 2026 11:02
@usrnk1
usrnk1 merged commit db0e9d8 into dev Dec 2, 2026
10 checks passed
@usrnk1
usrnk1 deleted the queue-quote-rows branch December 2, 2026 11:03
@amrkmn amrkmn mentioned this pull request Dec 3, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant