Files
plugins/packages/agent-office/CHANGELOG.md
T
yetone 11e0acd9b1 agent-office 0.2.4: a jumpRequest.at ahead of the clock no longer blocks every later jump (#583)
0.2.3's host acted on any jumpRequest no older than 15 s, a future one
too, and kept its time in $XDG_CACHE_HOME/agent-office/last-jump.json;
every later click had at <= that time and was dropped until the clock
got there. The decision is now judgeJump(at, seen, now) in lib/jump.mjs:

- A request fires only from 15 s old to 5 s ahead, once.
- One stamped further ahead is set aside and recorded, so it never
  fires when the clock reaches it.
- A seen time ahead of now (0.2.3's file for such a request, or a clock
  that stepped back) blocks only that same request (at === seen); any
  other fresh click fires and rewrites the file. With seen in the past,
  an older or equal request is still never acted on, so nothing is
  replayed across restarts.
- The target is still worked out by the host from the session id; a
  page-stamped time can only make a request be skipped, not fire it
  later or elsewhere. Non-finite times are ignored and never written.

Existing bad last-jump.json from 0.2.3: read as before, no migration
needed; it no longer blocks, and the next click replaces it.

Run at this tree (base b797476), HOME=$(mktemp -d):
- mote (macOS): packages/agent-office bun test 180 pass, 0 fail;
  bun scripts/stamp-page.mjs --check ok; bun scripts/check.mjs ok.
- wsl-run (Ubuntu 24.04): agent-office bun test 180 pass, 0 fail.
- win-run (Windows 11): agent-office bun test 180 pass, 0 fail.
  The two host tests are macOS-only (fake herdr, like the 0.2.3 restart
  test); judgeJump's table test runs on all three.
- New tests against 0.2.3's office.hooks.mjs (mote): both host tests
  fail; a bad last-jump.json blocked the fresh jump, and a request an
  hour ahead fired at once.
- Broken by hand (mote): dropping the 5 s ahead bound (2 fail), letting
  a seen time ahead of now order requests again (3 fail), not recording
  a set-aside future request (2 fail).

Not tried: a real magpie with a real herdr or terminal, or a real clock
step; whole-repo bun test (only agent-office changed).
2026-11-01 14:35:42 +08:00

7.3 KiB

Changelog

0.2.4 · 2026-11-01

Fixed

  • A jumpRequest.at ahead of the clock no longer blocks every later jump. A request is acted on only from 15 s old to 5 s ahead; one stamped further ahead is set aside and remembered, so it never fires when the clock gets there. A last-jump.json time ahead of now — written by 0.2.3 for such a request, or after the clock stepped back — now blocks only that same request, and every other click jumps; the file is rewritten at the next request. A request already handled is still never replayed across restarts (#583).

0.2.3 · 2026-11-01

Added

  • Jump directly to the live macOS terminal tab, multiplexer pane or desktop app window running a session (lib/jump.mjs), with single-click panel buttons, multi-host selector when a multiplexer session (herdr / tmux) is attached in multiple terminals, and double-click on workers, name tags, list rows or side-rail rows (#552).

0.2.2 · 2026-11-01

Fixed

  • A Grok usage.json or summary.json rewritten at the same size within one file-system timestamp tick is read again. On Linux a write is stamped with the coarse kernel clock, so such a rewrite kept size, mtime and ctime, and the old token count stood. A sidecar stamped within the last 2.5 s now also carries a digest of its bytes, and its inode is part of its revision (#580).

0.2.1 · 2026-10-31

Fixed

  • Initial and reset scans no longer pass every fragment of a complete image-heavy record through the character framer; only fragments of the record still unfinished at EOF are framed, once (#559).
  • Regressions for identical-witness inode replacement, invalidated committed EOF records, exact Codex-title append reads and unchanged summary caching (#559).

0.2.0 · 2026-10-31

功能对齐 whatsmyagentdoing,并加入真正的 3D 与独立运行方式。

Added

  • Real WebGL 3D office (page/scene3d.js, bundled three.js r169): orthographic orbit camera, wheel zoom, lighting, shadows, six procedural scenes (office, station, cafe, castle, pirate, graveyard), animated workers and DOM name-tag anchors.
  • ISO canvas view between 2D and 3D: five activity venues (reading, arcade, huddle, ping-pong, coffee), an office cat, day/night window light, drag-pan and wheel/pinch zoom.
  • Copilot CLI, Kimi Code and Grok Build readers, Claude Code subagents, OMP profiles, and parent/subagent metadata.
  • Workbench: Needs you → Working → Finished groups, agent-mix / subagent / idle filters, grouped side rail.
  • Today panel: turns, tokens, top folders and context bars (60% warn, 85% full).
  • Recent conversation in the agent panel (last 8 messages), with privacy redaction.
  • No-progress badges at 8 minutes thinking and 10 minutes running; completed agents wander the venues and sofa.
  • In-page toast for new waiting/error sessions; tab-title need-you count.
  • Claude process-liveness check: a session mid-turn with no live process (for example claude -p killed from another agent) is stopped, not stuck.
  • Clear removes a finished/stopped/waiting/stuck agent until its session moves again.
  • Nine-language UI: English, 简体中文, 繁體中文, 日本語, 한국어, Español, Français, Deutsch, Português, with prompt-script, theme and browser fallback.
  • Standalone bin/agent-office.mjs (--json, --private, --hours, local page server) and SKILL.md for Claude Code / Codex skills.

Fixed

  • Narrow the CSP compatibility note to the reproduced Mac Playwright/WebKit build and add a local diagnostic; Linux build 2336 did not reproduce the refusal.

  • Secure the standalone server with per-run capability URLs, validated Host and same-origin JSON writes; reject cross-site data/script access.

  • Scrub hidden rail, list, conversation and closed-panel DOM when text is disabled.

  • Keep stopped 3D renderers stopped across visibility and context restoration; avoid hidden-canvas DPR growth.

  • Execute bundled THREE in renderer tests; batch articulated worker meshes with InstancedMesh, preserve crowd capacity and keep six-scene props clear of seating routes.

  • Refresh Today usage at local midnight and read Grok's vendor-documented usage sidecar. JSONL now retains per-file byte cursors and reader state; normal polls parse only appended records instead of replaying growing history every 1.5 s.

  • Handle partial UTF-8/JSON writes and delayed newlines, reset on truncation/inode replacement/same-size rewrites, and check at most 128 old bytes for truncate-and-regrow. Codex titles use the same incremental framing; unchanged sidecars are not re-parsed or retained as full usage snapshots.

  • Preserve incremental tool/stream/usage state, Claude response corrections and metadata removal/fallback precedence; incomplete quoted braces do not trigger repeated full-record parsing. Byte-count regression tests cover 100 MiB logs and fragmented image/text writes.

  • Recompute time-based states without new log writes; allow clearing No progress sessions, unify rail/list labels and retain alert history across filters.

  • Bound menus and panels to the current CSS viewport; fingerprint static assets to prevent mixing old resources after a same-version update.

  • Translate scene/quality/fallback/venue labels and scope camera shortcuts to a focused canvas.

  • Inactive canvas is hidden explicitly, so switching between 3D, ISO and 2D never leaves the previous renderer visible.

  • The grouped rail and menus no longer sit under the agent detail panel.

  • The security test distinguishes the vendored three.js bundle from our own page code; scene3d.js still has no network calls.

  • Toolbar controls are grouped, so Settings never wraps alone on a second row.

  • The page fills the plugin frame without an outer scrollbar; the stage shrinks instead of overflowing.

  • Name tags use their laid-out position for collision stacking, stay inside the stage, and are capped by priority so they cannot cover the office.

  • The grouped side rail now defaults to closed (previous default: open), leaving more space for the office. Open it with Panel; an old saved side:true is ignored once unless it carries the current preference version.

0.1.0 · 2026-10-29

首个公开发布版本。First public release.

Added

  • Live session readers for Claude Code, Codex, DeepSeek Harness, Gemini CLI, Qwen Code, Pi, omp, Qoder, WorkBuddy and CodeBuddy, with a gateway-hook fallback for other agents.
  • Isometric 3D and top-down 2D office, live list, per-agent details and resume commands, plus a draggable and resizable in-page floating window.
  • Real-time statuses, current tool steps, approval requests, completed and failed sessions.
  • Varied idle gestures: stretching, glancing, leg swinging and dozing, with reduced-motion support.
  • Front-aisle sofa boarding and exit, collision-safe pathfinding, worker separation and non-overlapping name tags.
  • Correct seating orientation, monitor screens, chair backs and sitting legs for every seat.
  • Real agent icons for the agents magpie knows, English and Chinese UI, and local-only text privacy controls.
  • Furniture and seated-worker compositing, with no workers painted through sofas, cushions, backrests or consoles.
  • The page follows magpie's window background without an outer grey ring.
  • 44 automated tests covering session parsing, package safety, pathfinding, sofa compositing, orientation and idle gestures.