Commit Graph

681 Commits

Author SHA1 Message Date
alan 2f60a0e17f merge(app): land browser-verified adaptive shell 2026-10-21 13:37:26 +01:00
alan a561c45b65 test(app): verify real browser shell navigation and capture states 2026-10-21 13:37:18 +01:00
alan cb1ea90035 merge(app): land verified socket transport foundation 2026-10-21 13:29:07 +01:00
alan 1e4ecea823 fix(app): harden socket lifecycle and expand transport regressions 2026-10-21 13:28:59 +01:00
alan 830726fa19 fix Flutter shell platform defaults and tab state 2026-10-21 13:28:50 +01:00
alan fed90ea35e docs(app): track candidate verification and next feature runs 2026-10-21 13:28:28 +01:00
alan c262f77501 feat(app): add Flutter websocket transport 2026-10-21 13:24:11 +01:00
alan cee5f72b14 feat(app): add adaptive client shell 2026-10-21 13:22:58 +01:00
alan 718442d73d fix(app): include feature data source in version control 2026-10-21 13:22:40 +01:00
alan 264f64c0bb docs(app): record corrected app-only admissions and preserved partial work 2026-10-21 13:18:33 +01:00
alan 184ce78b65 fix(notify): resolve web links for transactional outbox deliveries 2026-10-21 13:16:20 +01:00
alan eabe5d64dd docs(app): track five parallel Luna runs and integration queue 2026-10-21 13:16:14 +01:00
alan 0e0ef5450e feat(app): scaffold isolated Flutter client and parallel work contracts 2026-10-21 13:14:07 +01:00
alan 9ee2e003bf fix(notify): open configured web run pages from ntfy 2026-10-21 13:05:10 +01:00
alan 870c70aefa fix(web): share artifact files instead of URLs 2026-10-21 12:36:06 +01:00
alan 93be42b06e fix(web): preview artifact images on primary click 2026-10-21 12:26:27 +01:00
alan cc094fc06d feat(web): copy original run prompt 2026-10-21 12:19:26 +01:00
alan 634f241019 docs: record live mobile chat information panel verification 2026-10-21 11:04:03 +01:00
alan b9ace1db62 fix(web): move chat metrics into top-bar information panel 2026-10-21 11:01:22 +01:00
alan de987555e9 docs: record independent scheduling and navigation deployment 2026-10-21 02:12:58 +01:00
alan 1e4654381e feat(web): manage independent schedules and restore recorded stage navigation 2026-10-21 02:06:15 +01:00
alan 4ab49a2749 fix(web): align chat row icons and standardize interaction surfaces 2026-10-21 01:36:20 +01:00
alan 2c1d5ccd47 fix(web): keep chat row actions visible in reserved columns 2026-10-21 01:12:26 +01:00
alan fe02d153f1 Preserve saved schedule run-level write scope 2026-10-21 01:04:43 +01:00
alan 8c3f116190 Bind legacy schedule workspaces only at execution startup 2026-10-21 00:56:37 +01:00
alan 4d8b34939d Separate saved run schedules from pipeline definitions 2026-10-21 00:48:34 +01:00
alan 366931eeec feat(web): add independent saved schedule editor modules 2026-10-21 00:43:08 +01:00
alan 7e790126c5 docs: record verified native chat metrics deployment 2026-10-21 00:40:14 +01:00
alan 0b8595f16e feat(web): display reported chat throughput tokens context and cost 2026-10-21 00:27:12 +01:00
alan 910028a75c Keep last reported OpenCode metrics while the newest assistant is in flight
Read a bounded newest-first page of eight assistants (4 MiB, no cursor traversal), selecting context and completed generation rate independently from the latest valid measurement matching Session.Info.model provider/id. Require assistant model identity; never pair an old model's measurements with the selected model's window. Context remains unknown across a newer compaction until a subsequent prompt reports usage; the last completed matching rate may survive compaction.

Unknown model metadata is cached for 15 seconds instead of five minutes, while known capacities retain their five-minute cache. Provenance remains canonical V2 Model.Ref, TokenUsage and request-created/streamed/completed fields cited in chat_usage.go. No live endpoint access, inference or service changes.

Isolated HTTP regressions cover in-flight/null/empty newest tokens with prior known metrics, post-compaction boundaries, independent prompt/rate selection, switched/missing model identity, duplicate known-zero measurements, over-limit page rejection and metadata recovery. Checked full internal/opencode suite, focused usage race suite, go vet ./internal/opencode and git diff --check.
2026-10-21 00:26:48 +01:00
alan ce3482b057 Expose native OpenCode chat usage snapshots and replay session metrics
Read V2 session accounting, latest assistant prompt/cache components and native request-to-stream boundary. Resolve capacity by location/provider/catalog id with bounded metadata caching. Coalesce active/final readbacks; retain message-less session snapshots without changing admission or compaction state.

Provenance: https://opencode.ai/v2/openapi.json and anomalyco/opencode V2 4617210822bdbb31e5749751afbfb4584ccedac8: packages/schema/src/token-usage.ts, session-event.ts; packages/core/src/session/usage.ts, projector.ts, message-updater.ts, runner/step.ts. Native output is visible output, reasoning separate. Session totals include all five non-overlapping components. Generation rate uses created-to-streamed, not tool-inclusive completion.

Limitations: metrics remain unknown for missing components, absent timing/model metadata, reads beyond bounded latest-message/catalog budgets, or context preceding compaction. No local pricing, token estimation or default capacity. V1 gets no invented cumulative metrics; older V2 events remain available when readback is unavailable. No deployment or protocol/web/docs changes.

Checks: go test ./...; focused usage/stream race tests; go vet ./internal/opencode ./internal/server; go build ./...; git diff --check.
2026-10-21 00:13:51 +01:00
alan 83b60990d2 feat(codex): retain native session usage snapshots for chat
Verify typed ThreadTokenUsage/TokenUsageBreakdown/Thread/Turn against openai/codex@6fb1c3903d. Use native totalTokens and latest-call context tokens without re-adding cached/reasoning subsets. Replay bounded per-connection snapshots and clear on room/source release.

Cost stays unavailable: no subscription USD usage is reported by this notification. Throughput stays unavailable even with native Turn.durationMs because neither last-call nor cumulative-session output is a compatible turn-specific numerator. Thread readback exposes no token usage; no extra reads, resume, or live provider calls added.

Checks: go test -race ./internal/codex; go vet ./internal/codex; go test ./internal/server ./internal/protocol; git diff --check.
2026-10-21 00:07:12 +01:00
alan 3e62ed7979 feat(protocol): distinguish reported chat metrics from unavailable values 2026-10-21 00:01:17 +01:00
alan 8899dd150f docs: record reasoning effort verification and deployment 2026-10-20 23:53:13 +01:00
alan 724de27561 feat(stage): honor per-stage reasoning effort across native harnesses 2026-10-20 23:51:14 +01:00
alan 9ce2c5d143 feat(stage): apply and verify Pi reasoning effort before prompting 2026-10-20 23:45:17 +01:00
alan 2aaf7fe2cc feat(pipeline): parse optional reasoning effort for model stages 2026-10-20 23:40:14 +01:00
alan 6f4543444c docs: record verified local deployment and export repairs 2026-10-20 22:37:03 +01:00
alan ba8a981932 fix(chat): preserve fresh compaction state across reconnect history 2026-10-20 22:24:29 +01:00
alan 4969d667b3 Expose native chat compaction activity and retained replay 2026-10-20 22:17:41 +01:00
alan d8b111913e feat(web): show native context compaction activity in chat 2026-10-20 22:15:03 +01:00
alan aa57fe8a04 fix(chat): keep tool totals neutral and count individual errors 2026-10-20 22:05:21 +01:00
alan e29be1181f fix(audit): reserve bounded repair capacity outside user file quota 2026-10-20 22:00:43 +01:00
alan 128e134f98 docs(alpha): record final checks and in-installer model setup 2026-10-20 21:59:34 +01:00
alan da6daa9db5 Resolve configured host models during native installation
Read OpenCode V2's resolved default Model.Info through its authenticated CLI API from HOME when saved profile fields are missing. Preserve valid saved models, explicit --model and unrelated settings. Record the selected stage model in the native server environment so web starters have an actual default.

Run the existing read-only model picker inside ./install when a terminal needs a choice; fail noninteractive or cancelled/incomplete setup before claiming ready or starting services. Do not parse JSONC, open login flows, create sessions or run inference. Document the one-step configuration path.

Checks: 61 mocked native installer/lifecycle tests, 8 entrypoint tests, sh -n install install.sh, git diff --check. API/schema checked against official OpenCode V2 documentation. No operator CLI/service/model calls, live install, restart, deployment or native Linux verification.
2026-10-20 21:56:32 +01:00
alan d3c7e6e784 fix: allow cold managed service discovery only at stage admission 2026-10-20 21:53:52 +01:00
alan bb98bde4fc fix: pin native exports to stage execution service 2026-10-20 21:47:04 +01:00
alan 1f867d4827 docs(alpha): record isolated proxy authentication verification 2026-10-20 21:46:59 +01:00
alan a40898f79a docs(alpha): simplify native setup and verify generic starter creation 2026-10-20 21:42:34 +01:00
alan dce2d759d7 fix(audit): match export ownership and inventory receipts in browser 2026-10-20 21:42:34 +01:00