Skip to content

fix(dashboard): composer queue-count label was passing wrong var name#1674

Merged
esengine merged 1 commit into
mainfrom
fix/composer-queue-count
May 24, 2026
Merged

fix(dashboard): composer queue-count label was passing wrong var name#1674
esengine merged 1 commit into
mainfrom
fix/composer-queue-count

Conversation

@esengine

Copy link
Copy Markdown
Owner

Summary

  • The composer's "N queued" label was calling t("composer.queueCount", { n: queuedSends.length }), but both i18n templates use {count} as the placeholder ("{count} queued" / "{count} 个排队"). Variable name mismatch → no interpolation → UI rendered the literal string {count} 个排队 whenever a message got queued while busy.
  • One-character fix: ncount to match the templates.

Test plan

  • npx tsc --noEmit
  • cd dashboard && npm run build
  • Manual: while a turn is busy, press Enter on a non-empty composer — the chip row should now show "1 个排队" / "1 queued" instead of "{count} 个排队"

The composer's "N queued" label called `t("composer.queueCount", { n })`
but the i18n templates use `{count}` — variable mismatch left the
placeholder un-interpolated, so the UI rendered the literal string
`{count} 个排队` whenever a message was queued while busy.
@esengine esengine merged commit 340760f into main May 24, 2026
3 checks passed
@esengine esengine deleted the fix/composer-queue-count branch May 24, 2026 10:16
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