# 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). - `confirmed` (user acceptance) โ€” Rendered segment works in the live TUI, and the installer succeeded on all target machines: 2ร— Ubuntu + 1ร— macOS (2026-10-19, "installed and works perfectly"). Human acceptance, distinct from agent-run checks. ## Active work None. Initial release shipped and deployed to all target machines (2026-10-19). ## Blockers None. ## Exact next action Nothing pending. Only standing task: re-verify the bundle facts (`docs/DECISIONS.md` D2) after the next mcode release โ€” see `TODO.md`.