Skip to content

release: v0.5.12#16

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
release/v0.5.12
Jun 29, 2026
Merged

release: v0.5.12#16
ZhiXiao-Lin merged 1 commit into
mainfrom
release/v0.5.12

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown
Contributor

v0.5.12 — TUI context & UX hardening

Context usage & auto-compaction (deep optimization)

  • Model-aware auto-compaction: scale the core's auto-compact threshold to each model's real context window (the core triggers off a fixed 200k denominator), so it fires at ~85% of the actual window instead of misfiring.
  • Default undeclared context windows to 128k so compaction + the ctx% indicator never silently no-op.
  • Surface AgentEvent::ContextCompacted and color-code the ctx% indicator by fill level.

Token accuracy

  • now counts output (completion) tokens, not prompt+completion (which re-counted the growing context every turn and ballooned).
  • CJK-aware live token estimate (was a flat chars/4 that under-counted Chinese ~4×).

Fixes

  • A planning/parallel turn that ends without text now auto-synthesizes a final user-facing answer in every mode (was gated to ultracode) — fixes 'planning result not output to user'.
  • Clear the parallel-subagent panel when a turn ends (was lingering as 'N/N agents done').

UI

  • Route the whole TUI through the curated Tokyo Night palette (was raw 16-color ANSI).

书安OS

  • Rescope the built-in capability skill to the platform-wide progressive APIa3s-os-capabilities driving POST /api/v1/kernel/capabilities (was the security-only slice).

Also bundled (in-progress, same branch)

  • a3s box / a3s tools subcommands, Claude Code / Codex account integration, top view.

All CI gates pass locally: fmt, clippy -D warnings, cargo test --all-targets, cargo build --release.

@ZhiXiao-Lin ZhiXiao-Lin force-pushed the release/v0.5.12 branch 2 times, most recently from 9d703dc to 9c4aaf4 Compare June 29, 2026 11:34
TUI context & UX hardening + 书安OS login:
- context: model-aware auto-compaction (threshold scaled to each model's real
  window, 128k default for undeclared models, color-coded ctx%, ContextCompacted
  notice).
- tokens: ↓ counts OUTPUT (completion) tokens, not prompt+completion; CJK-aware
  live estimate.
- fix: planning/parallel turns that end without text auto-synthesize a final
  answer in every mode (was ultracode-only); clear the subagent panel at turn end.
- ui: route the whole TUI through the Tokyo Night palette (was raw ANSI).
- OS login: persistent session + automatic token refresh; the OAuth callback
  survives browser preconnect/favicon; helpful guidance when `os` isn't
  configured; endpoint + token exported to the agent shell env (no per-call
  config read).
- OS skill: a3s-os-capabilities drives the platform-wide progressive API
  (POST /api/v1/kernel/capabilities) — surfaces viewUrl, stays concise, narrows
  list→describe→execute.
- deps: pin a3s-code-core (AI45Lab/Code) + a3s-tui (A3S-Lab/TUI) to git revs that
  carry the APIs this release needs.

Also bundles in-progress `a3s box` / `a3s tools` / Claude+Codex accounts / top.
@ZhiXiao-Lin ZhiXiao-Lin merged commit 9420dde into main Jun 29, 2026
3 checks passed
@ZhiXiao-Lin ZhiXiao-Lin deleted the release/v0.5.12 branch June 29, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant