Repository navigation
refactor(host): keep mimir-host tokens and pending aligned on narrow terminals and with wide device names, through Loom's table (MMR-596) - #517
Conversation
…le, and align the artifact feed by terminal cell (MMR-596) mimir-host tokens and pending render through @loomcli/plugins/table: columns align by terminal cell, wrap to the terminal, and fall back to one record block per row when even the narrowest words do not fit. tokens leads with the device, shows last use as an age and pairing as a date, and adds REVOKED only under --all. The Loom CLI's text views now receive the view context, so the artifact feed pads its free-text title and tags with Loom's cell measure. Task, search, and seed rows pad ASCII-only columns and keep their layout.
… table rows carry no trailing spaces (MMR-596) Loom's table pads every cell up to the last column off a terminal, so a blank REVOKED cell left active rows ending in spaces. The host commands also compose their pack views with the exported jsonViews rather than a placeholder records callback.
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. Next included review available in 5 minutes. View limit details
Comment |
mimir-host tokensandpendingpadded their columns by character count, so a device named研究室のマシンpushed its whole row out of line. On a narrow terminal, rows ran off the edge.tokensalso printed a REVOKED column that is always-unless you pass--all.Both commands now lay out through Loom's
table()pack view. Columns align by terminal cell and wrap to the terminal's width. When even the narrowest unbroken text won't fit, each row prints as aLABEL valueblock.tokensnow leads with the device and shows last use as an age (19m ago,never) and pairing as a date. REVOKED appears only under--all. JSON output is unchanged.In the Loom CLI, text views now receive Loom's view context. The artifact feed uses it to pad its free-text titles and tags by terminal cell. Task, search, and seed rows keep their headerless layout. They pad only ASCII ids and fixed words, so their output is unchanged and parity needs no new difference entries.
Loom's
dimis a theme token, and neither app installs a theme, so table headers print unstyled. Thependinghint keeps its existing raw-SGR dim.Verified with
bun run verify,bun run test:host, and a pseudo-terminal smoke at 100 and 30 columns with wide-character device names.test:uiflaked on unrelated console focus tests, tracked as MMR-597.Closes MMR-596.
Made by Claude Opus 5.5 in Claude Code.