Commit graph

2119 commits

Author SHA1 Message Date
Resham Joshi
7d0083961d
Merge pull request #1298 from getagentseal/fix/project-filter-test-stderr
test(cli): stop asserting empty stderr in the project-filter command tests
2026-09-12 13:37:45 +03:00
iamtoruk
32c81c6f79 test(cli): stop asserting empty stderr, Node 24+ prints a deprecation warning 2026-09-12 03:30:29 -07:00
iamtoruk
a1805393de chore: require owner review via CODEOWNERS 2026-09-11 21:45:55 -07:00
ozymandiashh
effa656ef2
Merge pull request #1285 from mathieustan/feat/cli-project-filter
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(cli): honor --project/--exclude on every reporting command, and anchor absolute-path patterns
2026-09-11 20:15:20 +03:00
ozymandiashh
fef63c147a
Merge pull request #1284 from xiaozhenliu/fix/dsh-session-formats-1281
Fix DSH v0–v3 session discovery and usage accounting
2026-09-11 19:59:58 +03:00
Mathieu Stanowski
d8dfd72832 fix(cli): judge a pattern against the day cache, and never on screen
Three defects in the unmatched-pattern warning, all reported against a
path that is in fact correct.

`report`, `overview` and `status` judged a pattern against the live parse
plus the day cache, while `sessions`, `models`, `audit`, `compare`,
`optimize`, `yield` and `spend` judged it against the live parse alone.
On a project whose transcripts have expired, `overview --project <path>`
bills it while `sessions --project <path>` called the path wrong. The
check now falls back to the day cache, and only for what the live parse
missed, so the normal path reads no cache at all.

The warning also reached two places that must never see it. An Ink screen
owns the terminal, so it now honours the same `setInteractiveScanUI`
latch the parser checks before printing scan progress: `report --project
/typo` no longer writes over the dashboard. And `serve` routes every
stderr write into the progress-frame emitter, so `runStdioServe` calls
`suppressProjectFilterWarnings()` at startup rather than the module
reading argv, which a leading `--verbose` would have shifted.

SERVE_OPTIONS gains --project/--exclude for the seven commands that just
declared them, as the comment above it requires. Without that a filtered
request falls back to a cold spawn instead of the resident.
2026-09-11 17:29:55 +02:00
Mathieu Stanowski
740ec551e3 fix(cli): expand a leading ~ in a project pattern
A quoted '~/work/app' reaches the CLI unexpanded, and a pattern typed
into a field has no shell behind it at all. It was neither rooted nor a
substring of any stored path, so it selected nothing and said nothing.
The README made it worse by telling people to quote it.

A leading ~ is now expanded against the home directory and anchored like
any absolute path, so the quoted form selects the same project as the one
the shell would have expanded, and a wrong one is reported.

Two more from reading the hot path: the compiled filter only pays for the
project path key when some pattern is rooted and can read it, which the
day cache runs per project, per day, per provider slice; and
unmatchedRootedPatterns now calls matchesProjectPattern instead of
open-coding it.
2026-09-11 17:29:55 +02:00
Mathieu Stanowski
648fa40ebd feat(cli): warn when a rooted --project/--exclude names no project
A rooted pattern selects one project or nothing, so a typo does not
fail: it reports a total over a set nobody asked for, which reads
exactly like a correct answer. The run now says so on stderr, and the
exit status is untouched.

unmatchedRootedPatterns() tries each pattern on its own against the
UNFILTERED project list, which is what keeps it honest. Judged inside
filterProjectsByName instead, an earlier --project would mask a later
one selecting the same project, and an --exclude would be tested against
what --project had already removed. The message is period-scoped, since
a range-scoped parse is what was checked, and the durable path passes
the carried days' project identities alongside the live parse, so a
pattern naming only an expired-source project stays silent.

Nothing is reported under `serve`. That path routes process.stderr.write
into the progress-frame emitter (runCaptured), so a warning would reach
the desktop app as a scan-progress line.

The tests spawn the real CLI over a seeded corpus of two path siblings:
sessions for the commands that filter at the call site, spend and yield
for the two that take the patterns as arguments and filter inside, so
dropping the argument anywhere fails the suite. They also pin the shapes
that must stay silent: a pattern that selects something, a loose word, a
second --project overlapping the first, and an --exclude naming a
project --project had already removed.
2026-09-11 16:12:31 +02:00
Mathieu Stanowski
172b8f4df6 fix(cli): anchor an absolute-path project pattern to a segment boundary
filterProjectsByName matched every pattern as a raw substring, so
--exclude /a/my-company also removed the sibling /a/my-company-kit, and
no pattern the caller could type expressed "this project and not its
neighbours".

A rooted pattern (POSIX, Windows drive, UNC) now keys through
normalizeAbsProjectPathKey, the helper #1271 added for project identity,
and matches the way isProxiedPath matches proxyPaths: equal to the
project path, or a prefix of it on a path-segment boundary. Going
through that helper keeps one identity rule in the parser: identified
Windows paths casefold, POSIX case stays identity, and a Codex-style
stripped absolute path ("root/vault") keys the same as the pattern
"/root/vault" the user types. A pattern that is not rooted stays the
loose substring people type on the command line, so --project
my-company keeps covering my-company-kit and worktrees.

The rule lives in one closure (makeProjectFilter) applied to the live
parse and to the carry-forward day cache alike. The cache path had its
own copy, lowercasing and substring-matching, so a filtered headline
anchored today's live days while matching every cached day loosely: on a
carried day split across /Users/gone/app ($30) and /Users/gone/app-kit
($70), --exclude /Users/gone/app returned 0 instead of 70, and --exclude
/users/gone/app excluded both instead of neither. Both shapes are in
tests/project-filter-durable-totals.test.ts, the suite that exists to
pin that a filter selects the same projects whether it is resolved
against a fresh parse or against the cache.

The README gains the rules that were not written down: an absolute POSIX
path is case-sensitive while a Windows drive or UNC path folds case, and
a leading ~ is the shell's to expand.
2026-09-11 16:12:21 +02:00
xz
cd2e0dd43a Fix interleaved DSH accounting and preserve inclusive output 2026-09-11 21:12:15 +08:00
Mathieu Stanowski
29fcb38976 feat(cli): honor --project/--exclude on the remaining reporting commands
The README says these flags work on every command. They did not: only
report, overview, web, status, today, month and export declared them, so
sessions, models, compare, audit, optimize, yield and spend either
rejected the flag outright or silently reported the whole corpus.

Each command already funnels through parseAllSessions, so the filter is
applied at that single point with the shared filterProjectsByName. yield
and spend parse inside computeYield / computeSpendFlow, which now take
the patterns as optional arguments and default to filtering nothing.

README now states the matching rule instead of claiming "all commands".
2026-09-11 07:32:34 +02:00
xz
a2f1fe2007 Fix DSH v0-v3 session discovery and usage accounting 2026-09-11 12:40:36 +08:00
ozymandiashh
6a0f830b9b
Merge pull request #1229 from earbona23/test/scoped-run-stamps-whole-cache-complete
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
fix(parser): avoid marking partially scanned caches complete (#912)
2026-09-10 23:19:15 +03:00
Resham Joshi
eaed42408c
Merge pull request #1283 from getagentseal/feat/update-notification
feat(mac): notify when an update is available
2026-09-10 23:00:19 +03:00
iamtoruk
5e8236f77f feat(mac): notify when an update is available 2026-09-10 12:39:38 -07:00
Resham Joshi
36dd897913
Merge pull request #1282 from Enclavet/fix/kiro-working-directory
fix(kiro): emit workingDirectory so sync attribution can resolve the repo
2026-09-10 22:20:43 +03:00
iamtoruk
7d6388a0ed fix(kiro): shorten the workingDirectory note 2026-09-10 12:14:14 -07:00
Andrew Lee
7d2722fb70 fix(kiro): emit workingDirectory so sync attribution can resolve the repo
Every kiro session was attribution-blind: `codeburn sync push --attribution`
reported "0 facts total" regardless of window, so no session→commit correlation
ever reached the endpoint.

project-path-v1 set out to fix exactly this and wired the session's directory to
`projectPath`. But sync attribution does not read that field. computeAttributionRecords
calls buildRepoGroups in "trusted-session-cwd" mode:

    const sourcePath = identityMode === 'trusted-session-cwd'
      ? session.workingDirectory
      : project.projectPath

so it resolves the repo from `workingDirectory`, then filters to sessions whose
own directory resolved (`group.ownIdentity`). With that field unset,
`isTrustedAbsoluteWorkingDirectory(undefined)` returns false on its first clause,
every session is dropped, and attributeCommits joins the repo's commits against
an empty session list. The path was being carried the whole time, just on the
field nothing consumed.

All three kiro parsers now emit workingDirectory from the same provider-recorded
value they already use for projectPath:

- CLI (~/.kiro/sessions/cli/<id>.jsonl): companion .json `cwd`
- v2 IDE (~/.kiro/sessions/<hash>/sess_<id>/): session.json `workspacePaths[0]`
- workspace sessions: record `workspaceDirectory`

Nothing downstream needed changing. parser.ts already stamps
`workingDirectoryProvenance: 'provider-field'` on any provider-set value that
passes the trust check, which is what the consumer requires — an unmarked value
is treated as synthesized from projectPath and fails closed.

Bumps PROVIDER_PARSE_VERSIONS.kiro to working-directory-v1. Entries cached under
project-path-v1 hold projectPath but no workingDirectory, so without the bump the
fix would miss every user who already has a warm cache — that is, everyone
upgrading.

Verified against a real corpus (2457 CLI sessions, 8 v2 IDE sessions):

    before:  Attribution: 0 facts total, would push 0 (0 sessions, 0 commits)
    after:   Attribution: 190 facts total, would push 190 (21 sessions, 169 commits)

Tests cover workingDirectory for all three session shapes, the home-root
rejection (observed in 5 of 8 real IDE sessions, whose workspacePaths is the
user's home directory), and re-parse of a project-path-v1 cache.

AI-Origin: human
2026-09-10 17:39:37 +00:00
Resham Joshi
0fea397d14
Merge pull request #1278 from avs-io/codex/copilot-disconnect-1273-20260909
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(mac): preserve explicit Copilot disconnect
2026-09-10 08:52:49 +03:00
iamtoruk
1ffa3ec6c6 fix(mac): drop the post-await disconnect guards the refresh generation already covers 2026-09-09 22:45:35 -07:00
Resham Joshi
2aca5b1de3
Merge pull request #1280 from avs-io/codex/web-workflow-row-identity-20260910
fix(dash): keep workflow rows current across period changes
2026-09-10 08:43:04 +03:00
Resham Joshi
df288d4eb7
Merge pull request #1279 from avs-io/codex/native-stats-period-labels-20260910
fix(mac): label Stats totals for the selected period
2026-09-10 08:42:58 +03:00
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
ba9625c496 docs(dash): clarify ranked workflow row keys 2026-09-10 01:19:00 +05:30
Aditya Vikram Singh
034d717cea fix(dash): give workflow rework rows unique React keys
Basename path can repeat across projects. Ranked rows are stateless,
so path plus index is unique without merging counts or inventing ids.
2026-09-10 01:02:43 +05:30
Aditya Vikram Singh
541829998b fix(mac): stop Dock OAuth copy after Copilot disconnect
Nil-quota Capacity Dock used generic OAuth retry copy. Explicit
Disconnect leaves credentials, so reuse the existing disconnected
Settings detail for Copilot only.
2026-09-10 00:45:21 +05:30
Aditya Vikram Singh
8b9aca34e5 fix(mac): stop labeling selected-range Stats as today
Stats cards bind payload.current sessions/calls, which follow the
selected period, but the labels said today. Use period-neutral copy.
2026-09-10 00:39:58 +05:30
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
94218bf173 fix(mac): show honest Copilot copy after explicit disconnect
Plan and Settings treated sticky .notBootstrapped after Disconnect as
missing credentials. Keep first-use and real noCredentials sign-in copy;
disconnected state says quota tracking is off, credentials untouched,
and Connect resumes.
2026-09-09 22:59:56 +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
Aditya Vikram Singh
9794e94e44 fix(mac): preserve explicit Copilot disconnect across refreshes 2026-09-09 16:17:15 +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