Commit graph

2088 commits

Author SHA1 Message Date
Resham Joshi
2a57fc676b
Merge pull request #1277 from avs-io/codex/web-header-20260909
fix(dash): keep header controls usable at narrow widths
2026-09-10 08:42:51 +03:00
Resham Joshi
bc816821bc
Merge pull request #1275 from avs-io/codex/settings-rail-upstream-20260909
fix(desktop): keep settings navigation from shrinking
2026-09-10 08:42:44 +03:00
Resham Joshi
2636c51530
Merge pull request #1274 from avs-io/codex/star-history-pr-20260909
fix(ci): prepare star-history updates on a review branch
2026-09-10 08:42:37 +03:00
Aditya Vikram Singh
f5297541ba fix(dash): wrap mobile header controls onto a full-width row
Below md, brand/Usage/Context left ~22px for controls on one row. Wrap the
header and give the controls row basis-full so 390px stays usable.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 23:10:25 +05:30
Aditya Vikram Singh
7279de64ee fix(dash): contain header controls overflow between md and xl
min-w-0/overflow-x-auto and shrink-0 were max-md-only, so mid widths
(e.g. 900px) spilled provider/theme off-document and wrapped period labels.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-09 23:06:09 +05:30
Aditya Vikram Singh
18b3f6f948 fix(desktop): keep settings navigation from shrinking 2026-09-09 21:37:25 +05:30
Aditya Vikram Singh
bfa7105ef2 fix(ci): publish a star-history review branch without opening a PR
Repo Actions policy forbids bot-created pull requests
(can_approve_pull_request_reviews: false). Keep contents: write and
the rolling chore/star-history branch; emit a compare URL for a
maintainer to open the PR. Limit the job to the default branch.
2026-09-09 21:36:27 +05:30
Aditya Vikram Singh
2e70ea38f9 fix(ci): update star history through a pull request
Main rejects direct pushes (GH013). Keep the pinned generator, disable
its commit/push, and publish chart updates through a persistent
chore/star-history PR authored by github-actions[bot].
2026-09-09 21:29:40 +05:30
AgentSeal
2040e6073d Merge branch 'docs/capacity-dock-screenshot'
Some checks failed
Tests / test (22.13.0) (push) Has been cancelled
CI / semgrep (push) Has been cancelled
Tests / test (22) (push) Has been cancelled
Tests / test-platforms (macos-latest) (push) Has been cancelled
Tests / test-platforms (windows-latest) (push) Has been cancelled
Tests / desktop (push) Has been cancelled
# Conflicts:
#	assets/capacity-dock.jpg
2026-09-08 22:55:02 +03:00
AgentSeal
e6f269c470 docs(readme): refresh the Capacity Dock screenshot 2026-09-08 22:54:40 +03:00
Resham Joshi
159198be6c
Merge pull request #1271 from avs-io/codex/project-identity-session-counts
Some checks failed
CI / semgrep (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
Tests / test-platforms (macos-latest) (push) Waiting to run
Tests / test-platforms (windows-latest) (push) Waiting to run
Tests / desktop (push) Waiting to run
macOS Menubar CI / test (push) Has been cancelled
Windows Menubar CI / check (ubuntu-latest) (push) Has been cancelled
Windows Menubar CI / check (windows-latest) (push) Has been cancelled
fix(usage): preserve project identity and qualify session counts
2026-09-08 09:27:57 +03:00
Aditya Vikram Singh
a8cfce0c9f
Merge pull request #1169 from ksp2000/feature/standardize-model-capability-tiers
feat: standardize model capability tiers
2026-09-08 10:07:27 +05:30
iamtoruk
df38e63849 fix(usage): fold Windows case in spend identity, qualify --json counts, drop scratch tests 2026-09-07 14:56:32 -07:00
Resham Joshi
e8a6eb697b
Merge pull request #1272 from avs-io/codex/doctor-filesystem-probes
Some checks are pending
CI / semgrep (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
Tests / test-platforms (macos-latest) (push) Waiting to run
Tests / test-platforms (windows-latest) (push) Waiting to run
Tests / desktop (push) Waiting to run
fix(doctor): report filesystem roots for seven providers
2026-09-07 21:44:48 +03:00
iamtoruk
b2f6df19a4 test(doctor): pin the OpenClaw empty-root probe, drop the review-note comment 2026-09-07 11:38:24 -07:00
Aditya Vikram Singh
a1546f588b fix(cli): invalidate status snapshots after sessionCountBasis landed
Same-package render-5 records omit the field, so empty identity-0 is
served as unavailable. Bump STATUS_SNAPSHOT_RENDER_VERSION to 6. Daily
and session caches stay put so unknown retained accounting remains a
partial bound.
2026-09-07 22:59:35 +05:30
Aditya Vikram Singh
309fcef51b test(cli): spawn source CLI for a session spanning two days
The regression spawned dist/cli.js, which is absent in a clean npm-test
checkout. Drive the same end-to-end check through src/cli.ts and keep the
fixture on owned temporary paths isolated from inherited provider dirs.
2026-09-07 22:28:37 +05:30
Aditya Vikram Singh
c28cf06867 test(cli): pin color off for unpriced hostile-ID source-safety spawn
FORCE_COLOR=1 on agent/CI runners makes chalk paint table chrome with ESC.
The C0/C1 assertion is a model-ID sanitization check, not a color check.
2026-09-07 22:06:09 +05:30
Aditya Vikram Singh
0a7a281482 test(electron): stop chatty watchdog smoke racing Node boot
Independent default app npmtest killed the chatty optimize child at 614ms
because the 600ms idle timer started at spawn and the first progress byte
waited on Node boot plus setInterval. Emit the first stderr byte immediately
after boot, then ten 400ms ticks (result ticks 11) under a 2s silence budget.
Node boot still counts; the larger smoke window absorbs it. Work still
outlives a fixed total-runtime cap. Production already resets on every byte;
timeout constants unchanged.
2026-09-07 22:06:09 +05:30
Aditya Vikram Singh
f5fd47e83d fix(usage): preserve project identity and qualify incomplete session counts 2026-09-07 22:02:54 +05:30
Aditya Vikram Singh
a7eea1855e fix(doctor): add probeRoots for seven filesystem-silent providers (#899)
Close forge/mux/open-design/openclaw/zcode/zed/zerostack filesystem gaps.
Vercel remains the network-only exception. OpenClaw SQLite/JSONL
accounting stays in the following #1259 commit; this commit only adds
OpenClaw probeRoots so empty-root diagnostics can see an agents path.

Source-DIFF: 00ebf26c (1259-899-sqlite-discovery) / carried in d91b6a71
Lane: local core-wave 2026-09-07
2026-09-07 22:02:07 +05:30
Aditya Vikram Singh
0b1cf56fd9
Merge pull request #1269 from giovanninibarbosa/fix/ink-react-user-timing-leak
Some checks are pending
CI / semgrep (push) Waiting to run
macOS Menubar CI / test (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
Tests / test-platforms (macos-latest) (push) Waiting to run
Tests / test-platforms (windows-latest) (push) Waiting to run
Tests / desktop (push) Waiting to run
fix(cli): default NODE_ENV to production so the dashboard stops leaking React user-timing entries
2026-09-07 21:41:14 +05:30
Giovannini Barbosa
189e2960bd fix(cli): clear the user-timing buffer blind on the guard tick.
The interval only needs to empty the buffer, so counting first copied the
very entries it was about to drop. The counting variant stays for stop()
and the tests. Review suggestion on #1269.
2026-09-07 10:57:14 -03:00
Giovannini Barbosa
720824e619 fix(cli): default NODE_ENV to production so Ink's React build stops leaking user-timing entries.
React, loaded by Ink, picks its development build unless NODE_ENV is
exactly "production". Since React 19.2 that build records a
performance.measure() entry on every render (its DevTools "Scheduler"
and "Components" tracks), and Node keeps user-timing marks and measures
in a process-wide buffer that nothing ever trims. The interactive
dashboard re-renders on every progress tick and refresh, so the buffer
grows by roughly 700 entries a minute; after a few days the heap hits
V8's 4 GB default and the process aborts with "Ineffective mark-compacts
near heap limit ... JavaScript heap out of memory".

The launcher (dist/cli.js, the entry every client spawns) now defaults
NODE_ENV to "production" before importing main.js, which selects the
build that records nothing; an explicit NODE_ENV still wins. For that
explicit case, a small guard drops the user-timing buffer every 30 s for
the lifetime of each Ink UI (dashboard, sessions, context, compare).
codeburn records no marks or measures of its own, so nothing is lost.

Tests spawn the real launcher against a stub main.js to pin the default,
and drive a ticking Ink app in a child Node process to show the
development build's backlog, the production build's absence of one, and
the guard keeping it bounded.
2026-09-07 10:27:46 -03:00
Aditya Vikram Singh
83f0752cf1
Merge pull request #1266 from TheCrazyAnt/pr/node-beside-cli
fix(mac): prefer the node beside the CLI over a version manager's default
2026-09-07 16:16:40 +05:30
Yishun Tang · CrazyAnt
87a01c25f5 fix(mac): prefer the node beside the CLI over a version manager's default
The app built PATH by appending its curated directories after the
inherited value, so whichever `node` came first won -- on an nvm machine
that is the default alias, which can be an older major than the one the
CLI was installed under. Every spawn then died on the engine gate
("codeburn requires Node.js >= 22.13.0 (current: v20.20.2)") and the
popover showed "Could not load Today" with nothing pointing at Node.

augmentedPath now takes the resolved CLI path and, when an executable
node sits in the same directory, moves that directory to the front of
PATH -- promoting it if already present, dropping nothing. That
interpreter is the one that installed the CLI and satisfies its engine
range. A bare `codeburn` or a CLI with no sibling node leaves the
inherited order untouched, so #1263's Nix layout is unaffected.

makeProcess resolved the CLI twice, once for PATH and once for argv; it
now resolves once and passes the same value to both.

Three tests cover the reorder, the promote-not-duplicate case, and the
untouched case; removing only the reorder block makes the first two fail
with the reported shape while every pre-existing test still passes.
2026-09-07 10:16:48 +08:00
Resham Joshi
4a9d885281
Merge pull request #1263 from sm0keyyy/fix/mac-nix-cli-path
Some checks failed
CI / semgrep (push) Has been cancelled
macOS Menubar CI / test (push) Has been cancelled
Tests / test (22) (push) Has been cancelled
Tests / test (22.13.0) (push) Has been cancelled
Tests / test-platforms (macos-latest) (push) Has been cancelled
Tests / test-platforms (windows-latest) (push) Has been cancelled
Tests / desktop (push) Has been cancelled
fix(mac): resolve a Nix-provided node when spawning the codeburn CLI
2026-09-06 10:49:08 +03:00
sm0keyyy
dda323460b
fix(mac): resolve a Nix-provided node when spawning the codeburn CLI
On a nix-darwin machine node lives only in /etc/profiles/per-user/$USER/bin,
which appears in neither additionalPathEntries nor userNodePaths. The CLI shim
begins '#!/usr/bin/env node', so the spawn dies with
'env: node: No such file or directory' and exit status 127.

GUI apps normally inherit those directories from 'launchctl config user path',
stored in /var/db/com.apple.xpc.launchd/config/user.plist, which a macOS system
update deletes. Re-applying it is not durable, so name the Nix locations in
userNodePaths instead. That feeds both installedArgv() discovery and
augmentedPath() interpreter resolution.

Also adds ~/.local/bin, the bin directory for the common 'prefix = ~/.local'
npm configuration, which installedArgv() could not otherwise discover.

Entries are appended, so existing matches keep their precedence.
2026-09-05 22:56:57 -04:00
Resham Joshi
0007467e8b
Merge pull request #1258 from getagentseal/docs/dock-image-v2
Some checks failed
CI / semgrep (push) Has been cancelled
macOS Menubar CI / test (push) Has been cancelled
Tests / test (22) (push) Has been cancelled
Tests / test (22.13.0) (push) Has been cancelled
Tests / test-platforms (macos-latest) (push) Has been cancelled
Tests / test-platforms (windows-latest) (push) Has been cancelled
Tests / desktop (push) Has been cancelled
Windows Menubar CI / check (ubuntu-latest) (push) Has been cancelled
Windows Menubar CI / check (windows-latest) (push) Has been cancelled
docs(readme): Capacity Dock capture with three running sessions
2026-09-04 02:51:37 -07:00
iamtoruk
f1f598fbb2 docs(readme): Capacity Dock capture with three running sessions 2026-09-04 02:47:10 -07:00
Resham Joshi
f356ca6aef
Merge pull request #1257 from getagentseal/docs/dock-image-cache-bust
docs(readme): bust the cached Capacity Dock image
2026-09-04 02:36:21 -07:00
iamtoruk
f515bea7ec docs(readme): bust the cached Capacity Dock image 2026-09-04 02:34:45 -07:00
Resham Joshi
c824884883
Merge pull request #1256 from getagentseal/docs/dock-readme-windows
docs(readme): new Capacity Dock capture; the dock is on Windows too
2026-09-04 02:32:45 -07:00
iamtoruk
c38ce603f1 docs(readme): new Capacity Dock capture; the dock is on Windows too
The hero image now shows the glance card (running session, today's spend,
every quota window) beside the rail. The caption and the Windows section
say the dock ships on the Windows tray as well as the macOS menubar.
2026-09-04 02:32:03 -07:00
Resham Joshi
30241a26f8
Merge pull request #1255 from getagentseal/chore/release-0.9.24
chore: release 0.9.24
2026-09-04 02:13:25 -07:00
iamtoruk
a0e0b9f866 chore: release 0.9.24 2026-09-04 02:05:03 -07:00
Resham Joshi
f908b520f2
Merge pull request #1254 from getagentseal/chore/pricing-refresh-0.9.24
chore(pricing): refresh the bundled LiteLLM snapshot for 0.9.24
2026-09-04 01:54:30 -07:00
iamtoruk
4061dcd06c chore(pricing): refresh the bundled LiteLLM snapshot for 0.9.24
4669 -> 4739 primary models (+71, -1), 18 repriced; fallback table
200 -> 203 (+4, -1), 4 repriced. Notable: kimi-k2.5/k2.6 and the Azure
DeepSeek V4 rows gain cache-write prices, Mistral Medium and both Magistral
tiers repriced, Qwen3.8-2.4T cheaper, gemini-3.8-flash and grok-build-latest
new. bundle-litellm flags deepseek-v4-flash, deepseek-v4-pro and
claude-mythos-5 as now upstream (manual entries kept for this release).
2026-09-04 01:52:16 -07:00
Resham Joshi
f89ee4baed
Merge pull request #1253 from getagentseal/fix/grok-percent-gate-and-scrub
fix(mac): scope Grok's omitted-percent rule to unified billing; finish the fixture scrub
2026-09-04 01:50:17 -07:00
iamtoruk
bc9460951a fix(mac): scope Grok's omitted-percent-is-zero rule to unified billing; finish the fixture scrub
An omitted creditUsagePercent inside an open billing window was read as 0%
for every Grok account. That contract only holds for unified-billing users;
for anyone else it now stays unknown instead of showing a fabricated 0%.

The wireframe mockup still carried the one device name #1250 replaced
everywhere else.
2026-09-04 01:38:08 -07:00
Resham Joshi
c8f38a7b1c
Merge pull request #1221 from getagentseal/docs/registry-sync
Some checks are pending
CI / semgrep (push) Waiting to run
macOS Menubar CI / test (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
Tests / test-platforms (macos-latest) (push) Waiting to run
Tests / test-platforms (windows-latest) (push) Waiting to run
Tests / desktop (push) Waiting to run
Windows Menubar CI / check (ubuntu-latest) (push) Waiting to run
Windows Menubar CI / check (windows-latest) (push) Waiting to run
docs: sync provider registry, test inventory, and Gemini page with the tree
2026-09-03 14:00:42 -07:00
Resham Joshi
7307b080cd
Merge pull request #1242 from mh7whmyz6z-alt/fix/grok-unified-billing-omitted-percent
fix(mac): treat omitted Grok credit percent as 0% in an active window
2026-09-03 13:46:59 -07:00
Resham Joshi
be8dfb8f9d
Merge pull request #1250 from getagentseal/chore/scrub-personal-fixtures
chore: keep real people and machines out of a public repository
2026-09-03 13:09:36 -07:00
Resham Joshi
01e5a7663a
Merge pull request #1251 from getagentseal/fix/xproc-test-contention-budget
test(windows): stop the cross-process test starving itself on a loaded runner
2026-09-03 13:03:59 -07:00
iamtoruk
a2885c263b test(windows): stop the cross-process test starving itself on a loaded runner
The test ran 100 rounds a side, both taking the lock, while a reader thread
hammered the same file. Production allows a 2s wait with a 50ms poll, which
suits a UI that writes on a click but starves under that much contention: a
waiter that loses the race after each poll can exceed the budget, and the
acquire then fails by design. That is what turned main red on the merge,
not a lost update.

24 rounds a side keeps the property under test and the harness stops being
the thing that fails. Measured on this machine, ten runs each way: the test
still fails 10 out of 10 with CB_TRAY_XPROC_NOLOCK=1 and passes 10 out of
10 with the lock, so it detects the bug exactly as reliably as before.

The production budget and poll are untouched. If sustained contention ever
becomes a real workload rather than a test, the poll is the thing to
revisit, not the budget.
2026-09-03 12:52:25 -07:00
iamtoruk
02c3ab21dd chore: keep real people and machines out of a public repository
An audit of everything on main since v0.9.23 turned up five places where
real detail had been used where an invented value would have done. None of
them is a credential and none identifies a customer, but a public
repository is the wrong home for any of it.

perf/README.md cited an absolute path into a private audit workspace on a
contributor's own machine, naming their home directory, the workspace's
naming scheme and a run timestamp accurate to the second, as "evidence" no
reader can open. The number stays; the path goes, and the text now says
plainly that the artifact is not published. The same file described the
measurement corpus as the founder's 35 GB of session history, which is a
personal fact about one identifiable person, so it is now described by what
it is rather than by whose it is.

The remaining three are fixtures: a private product name as a working
directory, the maintainer's real operating-system username inside the very
tests that assert such a path is redacted, and their two machine names in
the sharing tests. Using the real values proved nothing the invented ones do
not, and the redaction tests read better when the string being scrubbed is
obviously synthetic.
2026-09-03 12:38:11 -07:00
Resham Joshi
e90036b106
Merge pull request #1248 from getagentseal/fix/windows-concurrency-review
fix(windows): a Codex login race and cross-process settings writes
2026-09-03 12:30:25 -07:00
iamtoruk
5f09d9735f fix(windows): make the cross-process lock test poll, not spin, so it passes on Windows
The rename retry landed, but its test kept the watcher reading in a
tight loop, and on real Windows that lost 8 runs in 12: a reader holding
the file open every instant is a race no bounded retry can win, because
an open handle blocks a rename until it closes. That is not a reader
either app has. The watcher now polls at 1ms, which still samples the
file thousands of times and still catches a lost update, while leaving
the writers room to rename. The locked path passes 15 of 15 on Windows,
and the unlocked path still reports a rolled-back write.

Also restores the lineage case the review asked for: a refresh where the
account id and refresh token are unchanged and only the id_token subject
moves, so the subject comparison is what discards the write. Both copies.
2026-09-03 11:28:01 -07:00
iamtoruk
96bf1984ff fix(windows): wait out a reader when replacing a preference file
The Windows CI leg failed on the cross-process test with EPERM from
renameSync. It is not a test artifact. Windows refuses a rename over a
file another process holds open rather than waiting, with
ERROR_ACCESS_DENIED or ERROR_SHARING_VIOLATION, and reads of these two
files are deliberately lock-free on both sides. So any tray or app read
that overlaps a writer's replace fails that write, and since this branch
made writers report a failure instead of swallowing it, the outcome is
exactly the lost update the lock exists to prevent, reached by another
route. The test's reader thread only made it visible by reading the way
both apps really do, continuously and without the lock.

The replace is now retried on that error class, ten attempts about 20ms
apart, on both sides: replace_file in settings.rs, used by settings patch
and by the dock's write_state_at, and renameOnto behind writeFileAtomic
in tray-settings.ts. The lock is already held at that point, so the wait
can only ever be on a reader, never on another writer, and a read of one
of these files is microseconds of open file. Once the budget is out the
original error is returned unchanged and the caller cleans up as before.
On POSIX, where a rename over an open file cannot fail this way, it
compiles out in Rust and short-circuits on process.platform in Node.

Reads stay lock-free, which is the right trade and the reason the files
can be read at all without coordination; both read paths now say what it
costs and where that cost is absorbed. The reader thread stays as it is,
and is now the regression test for the retry as well: it is what puts a
replace under a continuous reader.

The retry itself is covered on the Node side by faking the platform and
the rename, since a rename that fails this way cannot be produced on a
Mac: a reader waited out and the write landing, the budget running out
with the old file still whole, and an error a reader cannot cause not
being waited out at all. The Rust half is compiled out off Windows, so
CI is its only proof.
2026-09-03 11:10:33 -07:00
iamtoruk
a1b4b22f51 fix(windows): close three holes in the cross-process preference lock
writeDockEnabled still did its own read, mutate and atomic write of
windows-dock.json, outside the lock the rest of the module takes. It is
the Node side of the dock's enabled switch, reached from the desktop
app's Sidebar toggle, so a toggle there could still land between the
tray app's read and its rename and erase whatever it had just stored,
which in practice is the rail's placement. It now merges through
patchTrayFile, which takes the lock for the whole cycle; enabled is
already an accepted dock key, so nothing is dropped on the way.

Stale-lock recovery could hand out two owners at once. Both sides did
"if abandoned, unlink and retry", and nothing stood between the check
and the unlink: contender A could already have removed the stale lock
and created a fresh one of its own, and B's unlink then deleted A's
fresh lock, leaving both of them holding the file. Windows' share mode
hides this most of the time, because a lock a live holder still has open
will not unlink at all, but the same protocol runs on Linux and macOS,
where the unlink always succeeds. Removing an abandoned lock is now
itself arbitrated, by the same exclusive create the lock uses, on a
sibling <lock>.takeover file. Only its winner may unlink, and only after
re-checking staleness under that right, so a rival that reclaimed first
keeps the lock it now holds. A takeover file is dropped on every path
out, never held across the wait, and one left behind by a reclaimer that
died is freed by the same staleness rule as the lock itself.

The cross-process test asserted only each side's final value, so it
noticed a lost update only when the last writes happened to collide: on
a deliberately broken lock it passed about one run in three, which is
weak evidence for the property it exists to prove. Each side now writes
a counter that only rises, and a reader thread watches the file for the
whole run. A separate reader is the point: neither writer can see its
own counter rolled back, because in the unlocked cycle each carries the
other side's value forward itself, so what it reads back is never older
than what it last read. With the lock both counters only ever rise in
the file; without it one falls. It now fails on every unlocked run.

Also: a placement that cannot be saved is logged instead of discarded
silently, since losing the lock under contention is a new way for the
rail to revert at the next launch; and the Codex sameLogin comment now
states outright that a replacement document carrying none of the three
identifying fields reads as the same login and is written over, which is
the deliberate side to err on.
2026-09-03 10:28:05 -07:00