Disable the stream/timeline view toggle#209
Open
benvinegar wants to merge 1 commit into
Open
Conversation
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>
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.
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
<ViewToggle />from the session header (SessionView).SessionTimeline, theviewModestate, and trace-step fetching are untouched. With the toggle gone,viewModestays"stream", so the<Show when={viewMode() === "timeline"}>branch is simply never taken.ViewTogglecomponent (rather than delete) for a one-line revert, and drop the now-unusedsetViewModeimport.The
.view-toggleCSS rules remain as harmless dead styles to keep the revert trivial.Verification
npm run typecheck— cleannpm run lint(oxlint --deny-warnings) — cleannpm run build:embed— the toggle markup (aria-label="View mode", Stream/Timeline buttons) is gone fromengine.js; the timeline render (<div class=timeline>) is still present.🤖 Generated with Claude Code