codeburn/src
ozymandiashh b6a9622e07 fix(dash): disambiguate session legend labels, and stop $-patterns in the bootstrap
Follow-ups to the title change on this branch, all from an adversarial pass over
it.

Two series could render byte-identical labels. sessionKey is
provider/projectPath/sessionId, so the same session id under two project paths
is two series -- a session resumed in a different cwd, or two Claude config
directories holding the same project slug. The old label led with the project
so they stayed apart; leading with the title dropped the only thing separating
them. Labels are now built once at the end from per-key inputs: identical base
labels get the short project label appended, and the residual case (two
worktrees whose last two path segments match) falls back to the full path plus
full session id.

The label also depended on cache state. The hoist's comment claimed every input
was constant per sessionKey, which is false: title and project name are not in
the key, so two SessionSummary objects can share a key with different titles and
whichever arrived first won. Reproduced through the real parser -- two config
dirs, same project slug and session id, one with a title. Title candidates are
now collected per key and a valid one is preferred over none, deterministically.

The length cap sliced UTF-16 code units, so a title with an astral character on
the boundary left a lone high surrogate in the payload. It counts code points
now.

Separately, and pre-existing rather than introduced here: the web dashboard
injects its bootstrap with html.replace(string, string), so $-substitution
patterns in the replacement are interpreted. A payload value containing $` or $'
expands to the raw document around the match -- which contains </script> -- so
the '<' escaping upstream does not stop it. Device, project and model names
already reached that sink; session titles only widen the surface. The injection
is factored out and uses a replacer function.
2026-08-18 04:54:22 +03:00
..
act fix(act): dedup defer baselines against MCP rows, report pending honestly 2026-08-04 02:22:47 +03:00
data chore: bump to 0.9.20 2026-08-10 15:38:47 -07:00
guard feat(claude): account for /advisor escalations under the advisor model (#659) 2026-07-16 07:42:49 -07:00
mcp fix(report): surface estimated costs distinctly (#688) 2026-07-16 10:46:21 -07:00
providers perf(parser): parallelize the cold Codex rollout parse on the same worker pool 2026-08-17 02:30:14 -07:00
sharing fix(sharing): answer malformed request URLs instead of crashing the server 2026-08-04 05:56:18 +03:00
sync fix(desktop): close cache and lifecycle review gaps 2026-08-12 20:31:17 +03:00
antigravity-statusline.ts perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
audit-report.ts feat: add codeburn audit token-source view (#578) 2026-07-01 13:02:29 +02:00
bash-utils.ts perf(classifier): linear bash separator split 2026-08-16 18:31:41 -07:00
budget.ts feat(budget): spend budgets with overview display and scriptable --check (#562) 2026-07-16 11:10:16 -07:00
cache-dir.ts perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
cache-refresh-lock.ts perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
classifier.ts fix(insights): count read-shaped shell commands as reads, not as verification (#941) 2026-08-10 06:07:27 -07:00
cli-date.ts feat(cli): add lifetime period for CLI and dashboard (#753) 2026-07-20 05:24:33 -07:00
cli.ts Merge main into feat/multi-provider-plans, remove dead tautology 2026-05-16 10:42:03 -07:00
codex-cache.ts perf(parser): parallelize the cold Codex rollout parse on the same worker pool 2026-08-17 02:30:14 -07:00
codex-credits.ts feat(codex): compute Codex credit usage (#408, #495) (#510) 2026-06-18 17:03:46 +02:00
codex-throughput.ts feat(codex): add tool-excluded active throughput metrics 2026-07-24 22:53:43 -04:00
compare-stats.ts fix(compare): honor --model-a/--model-b in the TUI and resolve display names 2026-07-29 22:58:05 +05:30
compare.tsx fix(compare): honor --model-a/--model-b in the TUI and resolve display names 2026-07-29 22:58:05 +05:30
config.ts feat(budget): spend budgets with overview display and scriptable --check (#562) 2026-07-16 11:10:16 -07:00
content-utils.ts fix(parser): flatten already-sliced previews and memoize canonical path walks 2026-08-16 01:49:10 -07:00
context-budget.ts fix(context-budget): stop double-counting home skills and CLAUDE.md 2026-08-04 06:32:58 +03:00
context-tree-codex.ts Extract shared token estimation helper, migrate all CHARS_PER_TOKEN sites (#644) (#677) 2026-07-16 11:58:22 -07:00
context-tree.ts Extract shared token estimation helper, migrate all CHARS_PER_TOKEN sites (#644) (#677) 2026-07-16 11:58:22 -07:00
context-tui.tsx dashboard: Workflow panel, footer coaching notes, title-first context list 2026-07-20 22:26:50 +02:00
currency.ts perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
cursor-cache.ts perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
daily-cache.ts perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
dashboard.tsx Merge remote-tracking branch 'origin/main' into feat/tui-workflow-titles 2026-08-10 04:51:55 -07:00
day-aggregator.ts fix(daily-cache): surgical tz-migration de-dup for carried days (#770) 2026-08-04 04:11:30 +03:00
doctor.ts test(cache): make the round-2 review findings fail when broken 2026-08-05 05:58:17 +03:00
export.ts feat(export): subagentType and model on per-record exports; --by-agent follow-ups (#712) 2026-07-16 16:35:33 -07:00
fetch-utils.ts fix(network): add timeouts to critical-path fetches (#445) (#448) 2026-06-06 03:25:36 +02:00
format.ts fix(dashboard): label the day-count denominator, explain durable carry-forward 2026-07-29 23:02:05 +05:30
fs-utils.ts feat(copilot): track GitHub Copilot JetBrains IDE usage 2026-07-03 16:11:27 +05:30
granular-history.ts fix(dash): disambiguate session legend labels, and stop $-patterns in the bootstrap 2026-08-18 04:54:22 +03:00
ink-win.ts fix(ink-win): strip synchronized-update escapes instead of exact-matching them 2026-08-04 03:06:47 +03:00
main.ts perf: resident serve process for the desktop app — panel fetches in milliseconds 2026-08-10 09:43:44 -07:00
menubar-installer.ts fix(menubar): retry mid-stream download drops and harden the retry budget 2026-08-04 00:09:04 +02:00
menubar-json.ts kimicode: discover desktop-runtime sessions and fix menubar visibility 2026-07-23 21:31:25 +02:00
model-breakdown.ts feat(codex): add tool-excluded active throughput metrics 2026-07-24 22:53:43 -04:00
model-efficiency.ts fix(devin): report friendly GPT model names with effort tier (#585) 2026-07-01 16:01:49 +02:00
models-report.ts feat(export): subagentType and model on per-record exports; --by-agent follow-ups (#712) 2026-07-16 16:35:33 -07:00
models.ts perf(parser): parallelize the cold Claude parse across worker threads 2026-08-17 01:19:20 -07:00
optimize.ts fix(insights): count read-shaped shell commands as reads, not as verification (#941) 2026-08-10 06:07:27 -07:00
overview.ts fix(aggregator): apply --project/--exclude to the durable headline 2026-07-31 19:32:02 +08:00
parse-worker.ts perf(parse-workers): gate on pending bytes, size the per-worker budget per parse 2026-08-17 02:53:19 -07:00
parse-workers.ts perf(parse-workers): gate on pending bytes, size the per-worker budget per parse 2026-08-17 02:53:19 -07:00
parser.ts perf(parse-workers): gate on pending bytes, size the per-worker budget per parse 2026-08-17 02:53:19 -07:00
persistent-codeburn.ts refactor(cli): share persistent-codeburn resolver; tighten Antigravity hook ownership 2026-05-31 20:07:57 -07:00
plan-usage.ts Merge main into feat/multi-provider-plans, remove dead tautology 2026-05-16 10:42:03 -07:00
plans.ts feat(providers): add Grok Build provider (#521) 2026-06-19 17:21:41 +02:00
quota.ts prerelease: quota NaN guard, 10-year daily retention, test date bomb (#764) 2026-07-20 07:37:56 -07:00
serve.ts fix(serve): close review follow-ups on the shared-cache PR 2026-08-16 18:29:11 -07:00
session-cache.ts fix(cache): close three data-integrity holes in the month-shard layout 2026-08-17 00:42:39 -07:00
sessions-report.ts feat(cli): add interactive sessions browser (#793) 2026-07-21 13:03:47 +02:00
sessions-tui.tsx feat(cli): add interactive sessions browser (#793) 2026-07-21 13:03:47 +02:00
spend-flow.ts fix(cli): surface mDNS scan errors, robust spend-flow rollup + date label, harden tests 2026-07-10 16:20:41 -07:00
sqlite.ts Merge main into feat/multi-provider-plans, remove dead tautology 2026-05-16 10:42:03 -07:00
text-table.ts feat(devices): joined Totals by machine report (#536) 2026-06-20 19:23:03 +02:00
token-estimate.ts Extract shared token estimation helper, migrate all CHARS_PER_TOKEN sites (#644) (#677) 2026-07-16 11:58:22 -07:00
types.ts feat(codex): add tool-excluded active throughput metrics 2026-07-24 22:53:43 -04:00
usage-aggregator.ts fix(daily-cache): surgical tz-migration de-dup for carried days (#770) 2026-08-04 04:11:30 +03:00
web-dashboard.ts fix(dash): disambiguate session legend labels, and stop $-patterns in the bootstrap 2026-08-18 04:54:22 +03:00
workflow-insights.ts fix(insights): stop counting prose 'wrong answer' as a user correction 2026-08-10 04:45:52 -07:00
yield.ts fix(sync): close credential-leak paths; session retraction; span/key/CLI hardening 2026-08-02 12:56:59 +00:00