Repository navigation
feat(local): Add capture controls and telemetry investigation - #1509
Merged
Merged
Conversation
Discover running and retained sessions through a separate browser capability and switch isolated feeds in local and hosted viewers. Co-Authored-By: GPT-6 Codex <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Use the existing shadcn Command and Button components with a Radix popover, keep session paths in the menu, and constrain the workspace width. Co-Authored-By: GPT-6 Codex <[email protected]>
Use full-width labeled buttons and separate closing a session from clearing events. Co-Authored-By: GPT-6 Codex <[email protected]>
Give Change receiver a full button and retain accessible icon controls for clearing events and closing sessions. Co-Authored-By: GPT-6 Codex <[email protected]>
Let Change fill the available space beside fixed-size Clear and Close icon buttons. Co-Authored-By: GPT-6 Codex <[email protected]>
Move retention into validated sidebar settings and add tooltips to receiver actions. Preserve discovery across reloads and same-port daemon restarts. Co-Authored-By: GPT-6 Codex <[email protected]>
Point human Local output at the hosted viewer with the actual loopback port. Accept plain receiver query links and consume them after pairing so reloads preserve the selected session without exposing capabilities or changing JSON output. Co-Authored-By: GPT-6 Codex <[email protected]>
Offer Light, Dark, and System themes through the existing viewer theme provider. Persist the preference without reconnecting the receiver and cover the Settings flow with an integration regression. Co-Authored-By: GPT-6 Codex <[email protected]>
Use a dismissible Add receiver modal with a shared connection form and tab-scoped history. Probe replacement streams before switching, preserve retained-session context, and guard cancelled or stale lifecycle actions. Keep Settings accessible on the landing and cover modal, history, replay, and session-state transitions with regressions. Co-Authored-By: GPT-6 Codex <[email protected]>
Close old SSE and probe sockets explicitly after stopping each test server. This avoids Node 22 keep-alive delays exhausting the history test timeout on CI. Co-Authored-By: GPT-6 Codex <[email protected]>
Separate retained envelopes from the editable limit and preserve visible capacity in read-only viewers. Co-Authored-By: GPT-6 Codex <[email protected]>
Merge main after PR #1503, reuse the CLI brand asset, simplify receiver copy, and make event and trace inspection usable on narrow screens. Use the shared Settings dialog from mobile receiver actions and cover focus handoff, retention bounds, and live system-theme changes. Co-Authored-By: GPT-6 Codex <[email protected]>
Clear a failed landing attempt when its endpoint changes. Preserve the disconnected feed error while a replacement is edited in the modal. Co-Authored-By: GPT-6 Codex <[email protected]>
Exercise a delayed real POST and wait for submission completion. Assert retained data after the receiver commits the new limit. Refs #1509 Co-Authored-By: GPT-6 (Codex) <[email protected]>
Separate tab-only clearing from confirmed receiver deletion. Show capture lifecycle and scope, and provide event and span inspectors with resizable panes. Add explicit view filters, diagnostics, onboarding, and lifecycle and accessibility regressions. Co-Authored-By: GPT-6 (Codex) <[email protected]>
Seed retained envelopes with bounded HTTP concurrency and query only the settings dialog. Keep real replay and mutation coverage without starving CI request deadlines. Co-Authored-By: GPT-6 (Codex) <[email protected]>
Restore this tab's receiver choice, block reload during deletion, and preserve trace filters. Ignore stale span selections on fallback traces and cover each transition with regressions. Co-Authored-By: GPT-6 (Codex) <[email protected]>
Add dedicated AI, error, profile, attachment, feedback and SDK inspection alongside query, resource and Web Vitals analysis. Extend filtering and trace navigation and replay raw SDK envelopes through the receiver for repeatable UI verification. Co-Authored-By: GPT-6 (Codex) <[email protected]>
Disable line-ending conversion for byte-counted replay fixtures. Exercise a real Git checkout with core.autocrlf=true to prevent corruption. Co-Authored-By: GPT-6 (Codex) <[email protected]>
Apply the same AI operation and origin classification to semantic inspection and workspace routing, including spans without captured content. Co-Authored-By: GPT-6 (Codex) <[email protected]>
Allow the multi-view HTTP/SSE integration scenario 15 seconds on slower Windows runners, preserving teardown before the next receiver test. Co-Authored-By: GPT-6 (Codex) <[email protected]>
Restrict download MIME types and render attachments from raw SSE envelopes. Preserve edited receiver ownership and lifecycle-aware SDK empty states. Keep long profile and Web Vitals lists scrollable and avoid false empty details. Cover attachment encoding and raw fixture boundaries with receiver regressions. Co-Authored-By: GPT-6 (Codex) <[email protected]>
7 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Local discovers capturing and saved sessions from a daemon's plain loopback stream address. The searchable picker keeps feeds isolated, refreshes as runs start or expire, and restores the selected capture after reload. Local commands print a viewer link using the actual bound port.
The viewer now supports investigation beyond raw payload inspection:
For development,
pnpm --filter local sampleposts nine bundled, sanitized example envelopes through the real receiver. It also replays a custom file or recursive fixture directory, including Spotlight's corpus, with endpoint selection, gzip/Brotli, intervals and repeated passes. Byte-counted fixtures preserve their original bytes on Windows checkouts. See the viewer and replay guide.Discovery uses a separate capability restricted to loopback and trusted hosted Local origins; it grants neither ingestion nor CLI control. Scoped retention updates require the session stream capability. Hosted viewers cannot delete receiver data or stop captures, and remote HTTPS streams remain read-only. Older receivers connect without discovery; restarting an older daemon to upgrade clears its in-memory telemetry.
The span-v2 handling from Spotlight #1372 is adapted to Toolkit's viewer model, including container validation, typed HTTP attributes and late segment naming. Existing
/liveand/sdksroutes remain compatible, and original envelopes remain inspectable.Validation: all 322 viewer tests pass, including HTTP/SSE replay, analysis drill-down, binary attachments, filtered navigation, a 150,000-sample profile and Windows checkout regressions. Root typecheck and lint pass. The Local workflow exercises viewer integration and npm/native process E2E on Linux, macOS and Windows. The full local suite still encounters the known macOS musl-installer and DerivedData-scan failures; the unrelated issue-link cache race is unchanged.
The screenshots below show the capture/session flows: