Skip to content

feat(native): complete Wave 1B TV-STREAM, TV-HISTORY, and TV-WATERMARK parity - #360

Merged
rynfar merged 5 commits into
nativefrom
nw/243-tv-stream-history-watermark
Nov 13, 2026
Merged

rynfar merged 5 commits into
nativefrom
nw/243-tv-stream-history-watermark

Conversation

@rynfar

@rynfar rynfar commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Ref #243
Ref #223
Closes #272
Closes #228

Problem

Three Thread View slices (TV-STREAM, TV-HISTORY, and TV-WATERMARK) in apps/native had parity gaps against the web client:

Solution

  • TV-STREAM: Added exponential backoff (250ms–30s) and permanent-auth stop (RpcError::Closed / EnvironmentAuthorizationError) for thread stream retries (parity: fix(client-runtime): a thread keeps syncing after a stream defect (pingdotgg/t3code#31071) #272), tracked last_error in Composer::Snapshot (composer/mod.rs, composer/view.rs) and emitted AppEvent::Thread + recovery clearing on StreamError, avoided redundant visible-item visibility work on status updates (parity: perf(shared): avoid redundant visibility work on status updates (pingdotgg/t3code#28965) #223), and marked TV-STREAM done in apps/native/parity/LEDGER.md (with #187 removed to TR-MEDIA).
  • TV-HISTORY: Implemented bounded snapshots (deferWork=1), serialized history/work merges (history_merge_lock across fetch_history_page, fetch_side_history_page, load_earlier_through, and load_deferred_work), view=work / throughEntryId paging, reconcilePendingWork (GET_TURN_ITEM concurrency 4 + ThreadState::settle_turn_items), ThreadView triggers (load_earlier_through on find/citations and toggle_run/toggle_attempt deferred-work fetch), and expanded fold WorkHistorySkeleton + inline "Couldn't load work. Click to retry." state without collapsing on click.
  • TV-WATERMARK: Recorded query-bearing palette visits (palette/mod.rs), visibility-gated side-chat visits (side_chat/pane.rs), active-thread watermark readiness gating (sidebar/controller.rs), and legacy-server local watermarks + one-time migration (core/src/sidebar/visits.rs, app_state.rs). Marked TV-WATERMARK and TV-HISTORY done in apps/native/parity/LEDGER.md.

Visual Evidence (1440x900 offscreen --snapshot)

Dark Light
Dark Light

Verification (da77aa408a5e7bce5563f9f9acba2cb078c9c653)

  • cargo test -p t3-core -p t3-client: t3_client 108 passed, t3_core 1339 passed, conformance 8 passed (0 failed)
  • cargo clippy --workspace --all-targets -- -D warnings: passed (0 warnings/errors)
  • Targeted t3-native suites (--features snapshot, --test-threads=1, isolated temp T3_NATIVE_HOME over thread_view::, transcript::, app_state::, side_chat::, palette::, sidebar::, composer::): 104 passed, 0 failed (76 other tests filtered out)
  • node --test apps/native/parity/sync.test.ts: 42 passed, 0 failed
  • vp fmt --check apps/native/parity/LEDGER.md: exited 0
  • Worktree JS scripts (gen-theme.ts --check, conformance/generate.ts --check): failed in worktree (MODULE_NOT_FOUND due to no node_modules in worktree); theme files are untouched and Rust conformance (8/8) passes.

Implemented with Gemini / Antigravity.

…visit watermark parity

Bring TV-STREAM, TV-HISTORY, and TV-WATERMARK to full parity with web: retry RPC stream open after defects (Closes #272), skip redundant visibility recomputation on status updates (Ref #223), add bounded snapshots and deferred-work/throughEntryId history paging, and support query-bearing palette visits, side-chat visit tracking, and legacy-server local watermarks with one-time migration (Closes #228, Ref #243).

Implemented with Gemini / Antigravity.
…ery, stop reconciliation, and visit watermarks
…ory-watermark

# Conflicts:
#	apps/native/parity/LEDGER.md
Add loading skeleton and inline retry prompt to expanded turn/attempt folds without collapsing on error, and sync fold work states from thread history.

Model: Gemini
…m errors

Serialize fetch_side_history_page with history_merge_lock and track last_error in Composer Snapshot so stream error set/clear repaints the UI.

Model: Gemini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant