diff --git a/agent/config.yml b/agent/config.yml index d79d481..97caa1e 100644 --- a/agent/config.yml +++ b/agent/config.yml @@ -99,11 +99,39 @@ disabledExtensions: [] statusLine: separator: powerline - preset: nerd + preset: custom contextLine: embedded transparent: true compactThinkingLevel: true showHookStatus: true + sessionAccent: true + leftSegments: + - session_name + - vim + - mode + - hostname + - model + - path + - git + - pr + rightSegments: + - token_in + - token_out + - cost + - context_pct + - time_spent + segmentOptions: + model: + showThinkingLevel: true + path: + abbreviate: true + stripWorkPrefix: false + maxLength: 120 + git: + showBranch: false + showStaged: true + showUnstaged: true + showUntracked: true tui: textSizing: true codexResetFireworks: false diff --git a/agent/models.yml b/agent/models.yml index ab7f20e..ae83b5c 100644 --- a/agent/models.yml +++ b/agent/models.yml @@ -23,7 +23,7 @@ providers: # config.yml (192.168.0.143:7771 — frank-zealot's 3090); the # compactionModel candidate keeps the wire model id valid there. compactionModel: llamacpp (dankclaw-3090)/frank-zealot - name: "frank-archon (dankserver)" + name: "frank-archon" # Dankserver: BOTH Radeon AI PRO R9700s (gfx1201, TP=2 over the # 2026-09-20 board swap's root ports, wht6 wire). Engine: # radiance (StillDeadcode, Apache-2.0) from the digest-pinned diff --git a/omp-docs/log.md b/omp-docs/log.md index 0b467fa..4f4fe6e 100644 --- a/omp-docs/log.md +++ b/omp-docs/log.md @@ -11,6 +11,15 @@ timestamp: 2026-08-28 # Bundle Change Log +## 2026-10-18 — Status line rebuilt on custom segments; frank-archon display name slimmed + +Interactive tune-up of the omp status bar (grilling session, live loop: config edit → watcher repaint → niri screenshot verify). New knowledge page: [OMP Status Line Customization](/pi/statusline.md). + +* **Mechanics discovered:** `leftSegments`/`rightSegments` are inert unless `preset: custom` (fleet was on `nerd` with dead arrays); `composer.shape` routes them — in `claude`, right segments paint the top rule chip, left segments the bottom strip. The red rule **is** the context meter (length = usage); `contextLine` label variants only render in `box`/`band`. Working row (`⠿ Working… + tok/s`) is hardcoded — model/thinking can never join it (Tern-only). Eight composer shapes registered in the bundle; box/band previews run live and rejected. +* **Final bar:** chip = `token_in · token_out · cost · context_pct · time_spent` (stable width, pure numbers); strip = `session_name · vim · mode · hostname · model · path · git(no branch text) · pr`. Cut: tok/s duplicate, clock, cache trio, `context_total`, `subagents`, `session` hash. `path`: full cwd (`stripWorkPrefix: false`, `maxLength: 120`) — worktree branches are autogenerated, so branch text dropped, dirty badges kept. +* **models.yml:** frank-archon display `name` slimmed to `"frank-archon"` (endpoint suffix dropped; `id` untouched). +* **Out of scope noted:** worktree name generation (`wt--`) is omp-internal; possible upstream feature request. + ## 2026-10-09 — Blankpad DE redesign: desk profiles, keybind rework, Handy fleet wiring Branch `blankpad-de-redesign` (worktree `wt/de-redesign-20261009`). Full sweep + redesign of the niri/noctalia/Handy stack on blankpad. diff --git a/omp-docs/pi/index.md b/omp-docs/pi/index.md index 656caf4..9d40d9f 100644 --- a/omp-docs/pi/index.md +++ b/omp-docs/pi/index.md @@ -8,6 +8,7 @@ two llama.cpp servers (Dankserver, Dankclaw). - [Pi Settings System (settings.json)](/core/settings.md) — Main `settings.json` reference. Providers, models, packages, subagent overrides. - [Pi Models Configuration](/pi/models.md) — `models.json` reference. Provider definitions, model specs, endpoints. +- [OMP Status Line Customization](/pi/statusline.md) — How presets, composer shapes, and segment arrays actually interact; the fleet's tuned bar. ## Extensions diff --git a/omp-docs/pi/statusline.md b/omp-docs/pi/statusline.md new file mode 100644 index 0000000..079873e --- /dev/null +++ b/omp-docs/pi/statusline.md @@ -0,0 +1,86 @@ +--- +type: reference +title: OMP Status Line Customization +description: How the omp status line actually works — presets vs custom arrays, composer-shape segment routing, the context meter, and the fleet's tuned segment layout. +tags: + - omp + - tui + - statusline + - config +timestamp: 2026-10-18 +--- + +# OMP Status Line Customization + +Ground truth from the installed bundle (`@oh-my-pi/pi-coding-agent/dist/cli.js`) +verified live on blankpad 2026-10-18. All knobs live in +`agent/config.yml` under `statusLine:` (tracked — see +[Command Center repo](../core/index.md)); the file is file-watched, so edits +repaint a running session without restart (verify visually: niri screenshot, +see [niri capture recipe](../system/index.md)). + +## Preset vs custom — the trap + +`statusLine.preset` ships whole configurations (`default`, `minimal`, +`compact`, `full`, `nerd`, `ascii`, `custom`). **`leftSegments` / +`rightSegments` / `segmentOptions` are only read when `preset: custom`** — +with any named preset they are silently ignored. The fleet config runs +`preset: custom`. + +## Composer shape routes the segments + +`composer.shape` decides *where* the two segment arrays render: + +| shape | leftSegments | rightSegments | +|---|---|---| +| `claude` (fleet) | bottom strip, left-aligned | top rule chip, right-aligned | +| `rule` | same as claude, gap above strip | same | +| `band` | merged single row above editor | same row, right side (title skipped — it rides the working row) | +| `box` | box top border | box top border | +| `borderless` / `pi` / `field` / `rail` | single bottom bar | single bottom bar | + +The `⠿ Working…` row is hardcoded: shimmer text + `composer.tokenRate` readout +(+ session title in `band` only). Model/thinking-level can never join it +despite the settings description — that composer-bar behavior is Tern-only. + +## Segment universe (27) + +`pi`, `status`, `model`, `mode`, `path`, `git`, `pr`, `subagents`, +`token_in`, `token_out`, `token_total`, `token_rate`, `cost`, `context_pct`, +`context_total`, `time_spent`, `time`, `session`, `hostname`, `cache_read`, +`cache_write`, `cache_hit`, `session_name`, `usage`, `collab`, `stream`, `vim`. + +Conditional segments render nothing until their trigger exists: `vim` needs +`tui.vimMode`, `mode` needs plan/yolo, `pr` needs an associated PR, `git` shows +staged/unstaged/untracked badges (branch text optional via +`segmentOptions.git.showBranch`), `status` needs an extension push. +`session` = first 8 chars of the session id (resume-by-id handle). + +## The context meter + +The red rule in the `claude` shape **is** the context meter: its length tracks +context usage. `statusLine.contextLine` (`off` / `percentage` / `annotated` / +`embedded`) only changes rendering in `box`/`band` — in `claude` all non-`off` +values look identical. Docs' claim that contextLine is "box composer only" is +wrong for the meter itself; the labeled inline variant (`57%×—200K←`) is the +box/band-only part. + +## Path segment in worktrees + +Inside a git worktree the `path` segment always renders +`projectName/worktreeName` when `segmentOptions.path.stripWorkPrefix` is true +(default), or the abbreviated cwd otherwise — base-directory-only is not +renderable. `maxLength` clips tail-first. + +## Fleet configuration (2026-10-18) + +- Chip (right): `session_name` was moved to the strip; chip = `token_in`, + `token_out`, `cost`, `context_pct`, `time_spent` — pure numbers, stable width. +- Strip (left): `session_name`, `vim`, `mode`, `hostname`, `model`, `path`, + `git` (no branch text — worktree branches are autogenerated names), `pr`. +- Deliberately cut: `token_rate` (lives on the working row), `time` (panel + clock), `cache_*` (noise), `context_total` (implied by `x/200K`), + `subagents`, `session`. +- Model display names slimmed in `models.yml` (`frank-archon`, no endpoint + suffix); `name:` is free-form display, `id:` is the wiring — renaming ids is + the cutover procedure, see [Pi Models](/pi/models.md).