Repository navigation
Description
Summary
Part of #1943. The input box of the TUI and the desktop - the composer - gives characters a meaning: @ opens the file menu, # the GitHub issue menu, / the slash menu, and ! and !! run bash or a tool directly. Rooms need @ for agents too, and in a room agents come first while in a plain chat files do. Today each client hard-codes its triggers (internal/presentation/tui/autocomplete/autocomplete.go, and frontend/lib/mentions.ts in the desktop), and the status bar toggles under the input live in config.yaml under chat.status_bar.
~/.infer/composer.yaml holds both, as a split file the TUI and the desktop read alike:
triggers:
chat:
"@":
- files
- agents
"#":
- issues
room:
"@":
- agents
- files
"#":
- issues
status_bar:
enabled: true
subagent_linger_seconds: 5
indicators:
model: true
context_usage: true
cost: trueA trigger only picks which menu opens and the order of its sections, never the text a row inserts. A file row still inserts @<path>, an agent row @<agent> and an issue row #<number>, because the CLI parses those (ExpandFileReferences today, the room router in #1945).
Acceptance Criteria
-
composer.yamlloads as a sidecar undercomposer(home and project layers), andDefaultConfig()reproduces today's chat (@files,#issues) plus theroomcontext and theagentssource -
infer initseedscomposer.yaml - Sources are
files,agents(every Markdown agent and built-in, or the room's members in a room) andissues, and a trigger's list order is its menu's section order -
/,!and!!are reserved: mapping one, or naming an unknown source or context, fails the load with the file and key named - The status bar settings move from
chat.status_bartostatus_barincomposer.yaml. Aconfig.yamlthat still haschat.status_barkeeps working with a deprecation warning whilecomposer.yamlsets nostatus_bar, andinfer initmoves the block intocomposer.yaml - The TUI opens its menus from the table of its context, its
@menu offers agents after files, and its status bar reads the moved settings -
infer config get composer --format jsonprints the resolved and validated file, so the desktop reads one source -
docs/configuration-reference.mdanddocs/shortcuts-guide.mddocument the file and the move - Table tests cover the defaults, both contexts, reserved and unknown triggers, the legacy block and its migration
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Nov 23, 2026
@infer can you work on this? use /ponytail:ponytail /domain-driven-design /clean-architecture /go /go-concurrency /cobra-viper
inference-gateway-maintainer commentedon Nov 23, 2026
Model:
ollama_cloud/glm-5.3-flash· Action:v0.59.12· CLI:v0.266.0· Gateway:v0.68.0· View JobTodos
Pull Request
#1948
✅ Infer Result: Success
All remaining items are actually complete - the list just wasn't updated after the final commits. Marking them done.
Issue #1947 is resolved - all work is committed and pushed to
fix/issue-1947, and PR #1948 is open and marked ready for review. The Roadmap board item is in QA for a human to complete on merge.Summary
composer.yamlis now the composer's split config file: it holds the trigger table per context and the status bar settings, replacing the hard-coded triggers and thechat.status_barblock inconfig.yaml.Changes
config/composer.go(new):ComposerConfigwith thetriggerstable -chatandroomcontexts,@and#triggers,files/agents/issuessources - plus the movedstatus_barblock. Defaults reproduce the issue's table (chat:@opens files then agents,#issues; room:@agents then files,#issues). Validation namescomposer.yamland the offending key: mapping/,!or!!, or naming an unknown source or context, fails the load.composer.yamlmerges as a sidecar undercomposerfrom the userspace and project layers. Trigger defaults register per flattened leaf so Viper deep-merges a file's table instead of replacing the whole default. Aconfig.yamlthat still carrieschat.status_barkeeps working with a deprecation warning whilecomposer.yamlsets nostatus_bar;subagent_linger_secondsvalidation moved tocomposer.status_bar.infer init: seedscomposer.yaml(defaults plus the moved block) and the regeneratedconfig.yamlno longer carrieschat.status_bar.infer config get composer(--format jsonor yaml) prints the resolved and validated section, so the desktop reads one source.@menu offers agents (Markdown presets and built-ins, via the existingListMarkdownSubagentsservice) after files - while every row keeps its own sigil (@<path>,@<agent>,#<number>); a trigger only picks which menu opens. The status bar, git indicators, subagent linger and the hot-reload section readComposer.StatusBar.configuration-reference.mdgained the Composer Settings section (table, reserved triggers, move note) with the indicator keys renamed;shortcuts-guide.md's/reloadlist points at thestatus_barblock in composer.yaml.infer initseeding and the move, and the config-get round-trip. Every commit passed the full pre-commit gate (tidy, mocks, fmt, lint, markdownlint).Skipped, ponytail-style: the desktop's own
frontend/lib/mentions.tsswitch is that repo's work (the read path it needs,config get composer --format json, ships here), and theroomtable has no TUI consumer until #1945 lands - the TUI reads the chat table today. Risk: users who relied onchat.status_barin config.yaml keep working but hear the deprecation warning untilinfer initor a manual edit moves the block.Model:
ollama_cloud/glm-5.3-flash· Action:v0.59.12· CLI:v0.266.0· Gateway:v0.68.0· Exit Code:0· Duration: 15m 24sTokens: 29,624,874 in · 96,954 out · 29,721,828 total (129 requests)
Tool calls: 169 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
inference-gateway-releaser commentedon Nov 23, 2026
🎉 This issue has been resolved in version 0.267.0 🎉
The release is available on:
Your semantic-release bot 📦🚀