Repository navigation
Conversation
Member
|
Screenshots for UX features please! |
rusackas
force-pushed
the
eject-session-to-board
branch
from
September 3, 2026 16:43
132d74a to
596817a
Compare
A button in the session panel header pops an open session out of the sidebar drawer onto the board canvas as a live, interactive node. The node reuses SessionPanel (`isEjected`) so transcript, prompt input and footer behave the same as in the sidebar. Re-dock moves it back to the drawer, Close dismisses the node, and several sessions can be ejected at once. Positions persist per user and board in localStorage (`useEjectedSessions`). Ported onto the current shell: the ejected node reads its MCP server ids via `useSessionMcpServerIds`, the drawer keeps the mobile full-screen layout, and the canvas keeps its zone-grid layout pass. The `ejectedSessions` default is a module-level constant so omitting the prop cannot re-run the node sync effect forever. Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
rusackas
force-pushed
the
eject-session-to-board
branch
from
November 25, 2026 05:07
596817a to
0436ab4
Compare
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
This branch has not been 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.
Summary
Requested by Evan (Agor admin). Implements the "session eject" feature: a button in the SessionPanel drawer header that pops an open session out onto the board canvas as a live, interactive node.
SessionPanelis reused withisEjected={true}, not forkedagor:ejected:<userId>:<boardId>)Architecture decisions
Client-side persistence (localStorage) for v1 — no DB migration, no backend changes, ships immediately. Each user's ejected positions are stored locally and survive page refreshes. Multi-device sync or admin-visible ejected state would require a
board_objectscolumn or separate table; that can be layered on later when the demand is clear.Reuse
SessionPanel, don't fork it — added two props (onEject?: () => void,isEjected?: boolean) that toggle drag-handle CSS and button layout. The underlyingSessionPanelContent,PromptInput, andSessionFooterare completely shared.No double-mount —
effectiveSelectedSessionIdexcludes ejected session IDs so the sidebar never opens for an already-ejected session;handleSessionClickhas a ref-based early-return guard for the same reason.Third sync effect for ejected nodes — matches the pattern of the existing board-objects and comment sync effects, preserving ejected nodes through WebSocket churn.
handleNodeDragStopdetectsejectedSessionNodetype and persists to localStorage instead ofboard-objects.Changed files
apps/agor-ui/src/hooks/useEjectedSessions.tsapps/agor-ui/src/components/SessionCanvas/canvas/EjectedSessionNode.tsxSessionPanelapps/agor-ui/src/components/SessionPanel/SessionPanel.tsxonEject+isEjectedprops; drag-handle/nodrag CSS; wheel guardapps/agor-ui/src/components/SessionCanvas/SessionCanvas.tsxejectedSessionNodetype, third sync effect, drag-stop early return, minimap colorapps/agor-ui/src/components/App/App.tsxonEject→ SessionPanel, props → SessionCanvasFollow-ups / punted
board_objectswith a newejected_session_idFKEto eject/re-dock the active sessionTest plan
/s/<id>/URL for an ejected session → sidebar stays closed, ejected node stays on canvas🤖 Generated with Claude Code