GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — [Bug]: Rendered-markdown view for a file in the right sidebar resets to source when you switch threads · Issue #4645 · pingdotgg/t3code Closed Labels bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization. DescriptionBefore submitting
Areaapps/web Steps to reproduce
Expected behaviorThe panel is still showing rendered markdown. The view mode should be sticky — Actual behaviorThe panel is back to raw markdown source, and I have to click the toggle again ImpactMinor bug or occasional failure Version or commitmain @ 5719e8a EnvironmentmacOS 26.5.2, desktop app Logs or stack tracesThe toggle is backed by component-local state in `FilePreviewPanel`: apps/web/src/components/files/FilePreviewPanel.tsx:675 const [markdownView, setMarkdownView] = useState<{ path: string | null; revealRequestId: number | null; }>({ path: null, revealRequestId: null }); Nothing persists it, and it's invalidated two ways: - `renderMarkdown` requires `markdownView.path === relativePath` (FilePreviewPanel.tsx:681), so any change of the open file drops back to source. - The panel is mounted with `key={environmentId:workspaceRoot}` (ChatView.tsx:5588), so switching to a thread in another project remounts it and resets the state entirely. The adjacent explorer-open toggle in the same component already persists via `FILE_EXPLORER_STORAGE_KEY` in localStorage (FilePreviewPanel.tsx:701-711), which looks like the precedent to follow here. Screenshots, recordings, or supporting filesNo response WorkaroundClick the toggle again each time. Activity
MetadataMetadataAssigneesLabelsbugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |