diff --git a/client/CLAUDE.md b/client/CLAUDE.md index 41fad10..4608686 100644 --- a/client/CLAUDE.md +++ b/client/CLAUDE.md @@ -23,7 +23,6 @@ client/ │ │ └── session/[id]/+page.svelte │ ├── lib/ │ │ ├── api.ts # HTTP + WebSocket -│ │ ├── push.ts # Push notifications │ │ ├── stores/sessions.ts # State management │ │ └── components/ # UI components │ ├── app.css # Tailwind @@ -90,7 +89,6 @@ wsClient.subscribe(id, (event) => { ... }); | `SessionCard` | Session list item | | `SessionSettings` | Gear menu | | `TerminalView` | Tmux display | -| `PushToggle` | Push notification toggle | ## Theme diff --git a/client/src/lib/CLAUDE.md b/client/src/lib/CLAUDE.md index 02abe47..297302f 100644 --- a/client/src/lib/CLAUDE.md +++ b/client/src/lib/CLAUDE.md @@ -7,9 +7,7 @@ Core library: API clients, stores, components. | File | Purpose | |------|---------| | `api.ts` | HTTP client, WebSocket, types | -| `push.ts` | Push notification utilities | | `stores/sessions.ts` | Session state management | -| `stores/push.ts` | Push notification state | | `components/` | Svelte components | ## Types (api.ts) diff --git a/client/src/lib/api.ts b/client/src/lib/api.ts index 0dabcf4..402b8ed 100644 --- a/client/src/lib/api.ts +++ b/client/src/lib/api.ts @@ -86,6 +86,8 @@ export interface TerminalDiff { hash?: number; 'frame-id'?: number; // Auto-incrementing ID for ordering frames (prevents out-of-order issues) frameId?: number; + 'clear-indices'?: number[]; // Line indices where clear screen sequences occurred + clearIndices?: number[]; } export interface TerminalContent { @@ -95,6 +97,10 @@ export interface TerminalContent { sessionName?: string; diff?: TerminalDiff; layout?: 'desktop' | 'landscape' | 'portrait'; + 'clear-indices'?: number[]; // Line indices where clear screen sequences occurred + clearIndices?: number[]; + 'scroll-to-line'?: number; // Suggested scroll position (line after last clear) + scrollToLine?: number; } export interface ExternalTmuxSession { diff --git a/client/src/lib/components/PushToggle.svelte b/client/src/lib/components/PushToggle.svelte deleted file mode 100644 index d816290..0000000 --- a/client/src/lib/components/PushToggle.svelte +++ /dev/null @@ -1,109 +0,0 @@ - - -{#if !isUnsupported} - -{/if} - -{#if errorMessage || storeError} -