Skip to content

Disable the stream/timeline view toggle#209

Open
benvinegar wants to merge 1 commit into
mainfrom
disable-stream-timeline-toggle
Open

Disable the stream/timeline view toggle#209
benvinegar wants to merge 1 commit into
mainfrom
disable-stream-timeline-toggle

Conversation

@benvinegar

Copy link
Copy Markdown
Member

What

Removes the Stream / Timeline switch from the session header so sessions always render as the stream. The timeline view is disabled, not deleted.

Why

We're pulling the timeline view out of the UI for now while keeping the option to bring it back.

How

  • Remove <ViewToggle /> from the session header (SessionView).
  • Keep the timeline path intact — SessionTimeline, the viewMode state, and trace-step fetching are untouched. With the toggle gone, viewMode stays "stream", so the <Show when={viewMode() === "timeline"}> branch is simply never taken.
  • Comment out the ViewToggle component (rather than delete) for a one-line revert, and drop the now-unused setViewMode import.

The .view-toggle CSS rules remain as harmless dead styles to keep the revert trivial.

Verification

  • npm run typecheck — clean
  • npm run lint (oxlint --deny-warnings) — clean
  • npm run build:embed — the toggle markup (aria-label="View mode", Stream/Timeline buttons) is gone from engine.js; the timeline render (<div class=timeline>) is still present.
  • No tests reference the toggle.

🤖 Generated with Claude Code

Remove the Stream/Timeline switch from the session header so sessions
always render as the stream. The timeline view is kept but unreachable:
SessionTimeline, the viewMode state, and trace-step fetching are all
untouched, and viewMode stays "stream" so the timeline branch is never
taken. The ViewToggle component is commented out (not deleted) for an
easy revert, and the unused setViewMode import is dropped.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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