Skip to content

feat(navbar): termination control for active session resume (OPEN-40)#264

Draft
zortos293 wants to merge 1 commit intodevfrom
cursor/resume-termination-button-659b
Draft

feat(navbar): termination control for active session resume (OPEN-40)#264
zortos293 wants to merge 1 commit intodevfrom
cursor/resume-termination-button-659b

Conversation

@zortos293
Copy link
Copy Markdown
Collaborator

Summary

Adds a power (end session) button beside the navbar Resume control when an active cloud session is detected. It calls the existing stopSession API with the same zone: "prod" convention used for createSession, clears local navbar state on success, and refreshes active sessions.

Behavior

  • Resume and End are mutually exclusive while either action is in progress (loading spinner on the active control).
  • End stays enabled when serverIp is missing (Resume stays disabled), so users can still try to tear down a stuck remote session via the zone API.

Testing

  • npm install and npx tsc --noEmit for both tsconfig.node.json and tsconfig.json in opennow-stable.

Closes OPEN-40.

Linear Issue: OPEN-40

Open in Web Open in Cursor 

When an active cloud session appears in the navbar, users can end it
remotely via stopSession without resuming. Resume is disabled while
termination is in progress; the power button stays available even when
the server address is missing so stuck sessions can still be cleared.

Co-authored-by: Zortos <zortosdev@proton.me>
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.

2 participants