# CURRENT_STATE Updated: 2026-10-19 ## Objective Self-contained, secret-safe z.ai GLM 5h-usage segment for the MiniMax Code statusline, installable on 1 macOS + 2 Ubuntu systems with one `curl | bash` line. ## Verified capabilities (this machine, mcode 0.6.12, Ubuntu-based PVE host) - `confirmed` โ€” Segment renders real quota data: `๐Ÿ”ฅ 1% ยท 4:16a(4h59m)` right after install (cache primed through SecretVault key against `https://api.z.ai`). - `confirmed` โ€” Config merge safety matrix 14/14 (`trials/config-merge-safety-2026-10-19/output.txt`): atomic write, 0600 on new files, backup equals pre-merge original, duplicate-structure refusal, provider untouched, piped-install embed identical, clean uninstall. - `confirmed` โ€” Vault key pairs with `api.z.ai` (200); old credential.json clientKey pairs with the `vault.itsaygea.com` proxy (200); vault key against the proxy โ†’ 401. (`trials/mcode-endpoint-key-pairing-2026-10-19/record.md`) - `confirmed` โ€” mcode statusline mechanics for 0.6.12: `tui.statusLine` + `tui.customStatusLine` in `~/.minimax/config.yaml`; JSON on stdin; stdout becomes the `custom-command` item on exit 0; `colorMode: ansi` passes ANSI through; intervalSeconds โ‰ฅ10, timeoutMs 500โ€“30000. Evidence: bundle reads in `docs/DECISIONS.md` (release digests recorded). - `confirmed` โ€” Pushed to `git@git.itsaygea.com:admin/mcode-sl.git` (port 2222 SSH). ## Active work None in flight. Last stage (initial install + push) completed 2026-10-19. ## Blockers - Visual confirmation of the rendered segment in the live TUI requires the user to restart MiniMax Code. Until then, ANSI/emoji rendering in the statusline is `inferred` (config accepted by the parser; passthrough path verified in code, not on screen). ## Exact next action User restarts the MiniMax Code TUI and confirms the segment renders (colors, emoji, no misalignment). Then roll out to the two Ubuntu machines + macOS via the curl one-liner and record results in `TODO.md` / `docs/FEATURE-MATRIX.md`.