Commit Graph

697 Commits

Author SHA1 Message Date
alan 51140cd3b7 feat(app): add native omni-search screen over the search gateway
Pure request/parse/row logic in lib/features/search/domain, a
gateway-backed repository, and Material plus Cupertino bodies.
The header and rows share one scroll view, and the server's
truncation, scan and cap facts stay visible even when a bounded
scan returns no matches.

Tests cover the exact search envelope, token parsing, stale replies,
retry, truncation bounds and platform layouts. A Web-only fixture
and CDP probe support rendered verification; the screen is not yet
registered in the shell.
2026-10-21 16:41:30 +01:00
alan 7ecd3903c0 docs(app): accept controller checks and track native-list test recovery 2026-10-21 14:01:29 +01:00
alan a2e7c43edb docs(app): preserve native run partial work and split widget acceptance 2026-10-21 13:57:19 +01:00
alan 38895a975b docs(app): parallelize run-controller final fixes and native presentation 2026-10-21 13:53:02 +01:00
alan b404232f84 docs(app): route chat native-controls completion through pipeline 2026-10-21 13:50:32 +01:00
alan eb0d7b4405 docs(app): record network preview and scoped run-controller resume 2026-10-21 13:47:01 +01:00
alan 0a8806b4bb docs(app): hold run UI candidate for pipeline acceptance fixes 2026-10-21 13:44:11 +01:00
alan ef4ff40c4b docs(app): enforce quality gates and record verified preview progress 2026-10-21 13:41:22 +01:00
alan 160ab45fe0 merge(app): land authenticated isolated preview tooling 2026-10-21 13:37:26 +01:00
alan 37d08232e4 merge(app): land corrected run-state foundation 2026-10-21 13:37:26 +01:00
alan 2f60a0e17f merge(app): land browser-verified adaptive shell 2026-10-21 13:37:26 +01:00
alan ae352bb9c6 fix(app): retain idle preview sockets and release auth listeners 2026-10-21 13:37:18 +01:00
alan a561c45b65 test(app): verify real browser shell navigation and capture states 2026-10-21 13:37:18 +01:00
alan 1515ebee99 fix flutter runs foundation parity gaps 2026-10-21 13:34:56 +01:00
alan 5cd269fca4 fix(app): harden guarded preview proxy 2026-10-21 13:32:54 +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 e3a82b0b36 feat(app): add guarded web preview server 2026-10-21 13:25:09 +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 7dd21b08c6 Merge branch 'main' into flutter/f3-runs 2026-10-21 13:22:40 +01:00
alan 718442d73d fix(app): include feature data source in version control 2026-10-21 13:22:40 +01:00
alan 444bd62996 feat(app): add run foundation repository and models 2026-10-21 13:21:30 +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