Repository navigation
feat(tui): queue indicator in status bar and source markers for queued messages - #1355
Conversation
…d messages Add a highlighted queue segment to the input status bar (icon + count, theme accent color, only while the queue has entries), wired via SetMessageQueue and the new chat.status_bar.indicators.queue toggle. Tag every queue box line with its source marker ([You], [Stdin], [A2A], [Shell], [Subagent], [Job]) and collapse every job result to its one-line header, not just A2A.
|
@infer please finalise this PR and record a demo of the queue indicator.
|
|
Model: Todos
Pull Request
|
|
@infer the demo GIF from the last run doesn't show the feature, please record it again. The mock reply never streamed, so the queue indicator never appeared. What went wrong last time, and how to avoid it:
The PR is already ready and on the board, so this run only needs the demo. |
|
Model: Todos
Pull Request❌ Infer Result: FailedThe GIF is in place and the tree is clean. Final sanity checks: the GIF itself opens correctly, no stray recordings left, then record the durable CI demo recipe. Model: Tokens: 7,956,207 in · 52,609 out · 8,008,816 total (48 requests) Tool calls: 77 total · 100% success rate ArtifactsTracesStats
|
|
@infer One last demo, I want to see at least 2 queued messages. |
|
Model: Todos
Pull Request✅ Infer Result: SuccessDone. The final demo is recorded with two messages queued at the same time. What the recording shows (40.2s,
Verification: I ran an unrecorded dry run first (all state markers matched via One behavior note visible in the video: draining is batched by design ( Model: Tokens: 3,295,420 in · 44,961 out · 3,340,381 total (42 requests) Tool calls: 58 total · 100% success rate ArtifactsTracesStatsTriggered by edenreich · Infer Action · OSS |
|
🎉 This PR is included in version 0.213.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## Summary `@infer /demo` on a PR (or `/demo` in chat) now has a procedure to follow: a new built-in `demo` skill, seeded into `~/.infer/skills` by `infer init` like `bug` and `tmux`. It records a short demo GIF of any project - CLI, TUI or GUI app - so it works in every org repo that runs infer-action with `record-demo`, desktop included. It replaces the demo procedure hardcoded in infer-action's `infer-action-record-demo` reminder (follow-up PR there shrinks it to a pointer to this skill). ## Why this shape Every rule comes from the 8 demo runs so far (#1355, #1348, #1359): | Observed | Skill rule | |---|---| | Procedure arrived at turn 28, after 3 takes and a committed `.mp4` (#1348) | "Record the demo" is the last todo, planned up front; recording after the work is pushed | | 4 GIFs in one comment - every probe take became a GIF (#1348, #1359) | Rehearse with `capture-pane` / Screenshot, record one take, convert only it to a fixed `~/.infer/artifacts/demo.gif` | | Take capped at 60 s before the interesting frame - one model turn per keystroke (#1359) | Whole take as one response of tool calls (`CallOrder` keeps them in order) | | Run died on `ImageDecode` of a GIF (API 400) (#1355, #1359) | Check a take via one PNG frame pulled with ffmpeg | | `pkill -f "infer chat"` matched the agent's own command line (#1355) | Quit with the app's own keys; no `pkill -f` / `killall` | | Own tmux sessions / xterms, not on the recorded display (#1348, #1359) | CI: only the `demo` session; GUI apps start there with `DISPLAY=:99` | | MP4 hard-linked into the repo and pushed (#1348) | `~/.infer/artifacts` is the delivery channel; recordings never enter the repo | | Wrong conclusions saved to memory in a run without recording (#1359) | No memories about demo mechanics - the skill is the source of truth | ## Changes - `internal/skills/builtins/demo/SKILL.md` - the skill - `internal/skills/builtins_test.go` - seeds and validates `demo`; description must route `/demo` - `docs/skills.md` - listed under built-in skills ## Verification - `go test ./internal/skills` green; pre-commit hook (mod:tidy, fmt, lint, markdownlint) passed on the commit - End-to-end check is `@infer /demo` on #1363 once this ships and infer-action/`.github` bump their CLI version ## Rollout 1. This PR, released (expected v0.215.0) 2. infer-action: reminder points at the skill, drops its own MP4->GIF conversion, allows `ffmpeg`, bumps default CLI version 3. `inference-gateway/.github`: bump `cli-version` and the infer-action tag Docs: follow-up `[DOCS]` issue for `inference-gateway/docs` still to be filed.



Resolves #1347
Summary
Queued messages (messages waiting while the agent is busy) now carry their
origin with them, and the UI surfaces it: a queue indicator appears in the
status bar below the input while the queue has entries, and each line in the
queue box above the input is prefixed with a source marker so a typed message
is distinguishable from a background job result.
Changes
QueuedMessagegains aSourcefield (composer,stdin,a2a,shell,subagent,job), set at enqueue time - never guessed from message textMessageQueue.Enqueuetakes the source; all three enqueue sites set it:composer (
ChatMessageProcessor.processChatMessage), background job resultsand notes (
Supervisor.enqueuemaps the job kind to a source), and host UIover stdin (headless
control.go)Enqueuealso setsQueuedAt(was always the zero time)☰ N queuedin the theme accent color while the queue isnon-empty; it disappears when the queue drains. New
chat.status_bar.indicators.queuetoggle (defaulttrue), documented indocs/configuration-reference.md[You],[A2A],[Shell],[Subagent],[Stdin]), oldest first, and every job result collapses to itsone-line
[<Kind> Completed/Failed: <label>]header (previously only A2A did)☰glyph ininternal/presentation/tui/styles/icons/icons.go- plainUnicode, no new dependency or Nerd Font requirement