Skip to content

Add Wake Sprite button to overview tab#49

Merged
mcintyre94 merged 5 commits intomcintyre94:mainfrom
zmanian:wake-sprite-button
Mar 10, 2026
Merged

Add Wake Sprite button to overview tab#49
mcintyre94 merged 5 commits intomcintyre94:mainfrom
zmanian:wake-sprite-button

Conversation

@zmanian
Copy link
Copy Markdown
Contributor

@zmanian zmanian commented Mar 7, 2026

Summary

  • Adds a "Wake Sprite" button in the Status section of the overview tab for cold/warm sprites
  • Fires a lightweight no-op exec (true) to implicitly wake the sprite, then polls status every 1s until running (30s timeout)
  • Button shows a spinner while waking and auto-hides once the sprite reaches running status

Test plan

  • Verify button appears for cold and warm sprites
  • Verify button is hidden for running sprites
  • Tap wake on a cold sprite and confirm it transitions to running
  • Verify spinner shows during wake and button disappears after

🤖 Generated with Claude Code

zmanian and others added 3 commits March 6, 2026 16:54
Allows waking cold/warm sprites without sending a chat message.
Fires a no-op exec to trigger the wake, then polls until running.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fire the exec in a background task and poll status immediately,
since the WebSocket may fail on cold sprites before they finish waking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Swipe right or long-press a warm/cold sprite to wake it directly
from the sprites list without navigating to the detail view.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mcintyre94
Copy link
Copy Markdown
Owner

mcintyre94 commented Mar 7, 2026

Is there a case where the overview page isn't already waking up a sprite? It should do because it pings a few sprite exec queries to check sprites/github auth status.

I wonder if the issue here is that we don't refresh the sprite status on the overview page? We refresh on the listing page (every 5s), but not on overview. If we did then I think you'd already see your sprite go from cold -> running -> warm when the overview is open for a few seconds.

You can also see this if you open overview on a cold sprite, let it load auth status and then go back to sprite listing - it should be showing as warm when that refreshes.

I think an alternative to this might be to poll status on overview every 1s or every few seconds while the sprite is cold. And then back off to every 10s maybe when it's warm/running, which it should transition to within a few seconds of opening overview.

Remove the explicit Wake Sprite button from the overview. Instead, poll
sprite status automatically: every 2s while cold/warm (to show the
transition to running), backing off to 10s when running/unknown.

The overview already implicitly wakes sprites via auth check exec queries,
so an explicit wake button is redundant. Status polling lets the user see
the cold -> running -> warm transition naturally.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@zmanian
Copy link
Copy Markdown
Contributor Author

zmanian commented Mar 7, 2026

Good call - the overview already implicitly wakes sprites via the auth status exec queries, so an explicit wake button is redundant.

Reworked this to add status polling on the overview tab instead: polls every 2s while cold/warm to show the transition to running, then backs off to 10s once running. The wake button is removed from the overview.

The dashboard swipe/context menu wake actions are still in the PR since those are useful for waking a sprite without navigating into it.

…nt, remove blank line; update CLAUDE.md

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mcintyre94 mcintyre94 merged commit 457ddb4 into mcintyre94:main Mar 10, 2026
2 checks passed
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