You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add shutdown flag and Telegram notifications to release scripts (#96)
--shutdown flag: Both release.sh and release-canary.sh now accept a --shutdown flag that automatically shuts down the computer after the release completes. This is useful for kicking off long-running release builds (notarization, packaging) and walking away. Sudo credentials are acquired upfront and kept alive via a background keepalive loop so the shutdown can execute unattended.
Telegram notifications: Both scripts now send Telegram messages at key milestones — release start, building, packaging/notarizing, success, and failure — via an optional tg() helper. Credentials are loaded from .env (MORIKO_TELEGRAM_BOT_TOKEN, MORIKO_TELEGRAM_OPERATOR_CHAT_ID); notifications are silently skipped if not configured.
EXIT trap for failure handling: An on_exit trap is armed after user confirmation so that aborting the release summary prompt doesn't trigger false failure notifications or an unwanted shutdown. On failure, a Telegram notification is sent; on --shutdown, the computer powers off after a 10-second grace period.
--dry-run + --shutdown guard (canary only): The canary script validates that --dry-run and --shutdown are not used together, since a dry run should never trigger a real shutdown.
Add indeterminate progress bar for agent working status (#95)
New IndeterminateProgressBar component (src/renderer/src/components/sessions/IndeterminateProgressBar.tsx): A compact animated progress indicator that displays while the AI agent is actively working (streaming). Uses a bouncing worm animation that slides back and forth across a rounded track.
Color-coded by session mode: Renders in blue (bg-blue-500) during build mode and violet (bg-violet-500) otherwise, matching the existing mode theming.
Integrated into SessionView: The progress bar appears inline next to the input area controls whenever isStreaming is true, providing clear visual feedback that the agent is processing.
CSS keyframe animation (progress-bounce): A 6-phase animation using left/right on an absolutely-positioned element to smoothly grow, slide, shrink, and reverse — creating a fluid bouncing worm effect over a 3-second cycle.
Accessibility: Includes role="progressbar" and aria-label="Agent is working" for screen readers. Respects prefers-reduced-motion by disabling the animation and showing a static centered bar instead.
Per-worktree dev server URL detection for Open in Chrome (#94)
Per-worktree URL tracking: Replaced the single shared detectedUrl state with a detectedUrls record keyed by worktree ID. Switching between worktrees now instantly displays the correct dev server port for each worktree instead of losing/resetting the detected URL.
Scoped cleanup: When a worktree's run script stops (runRunning becomes false), only that worktree's detected URL is cleared — other worktrees retain their detected URLs.
Zero-cost scanning: Once a URL is detected for a given worktree, scanning stops for that worktree (unchanged behavior, now correctly scoped per worktree).
No-op state updates avoided: The cleanup effect checks whether the worktree ID exists in the record before updating state, preventing unnecessary re-renders.
Skip worktree context injection for Supercharge sessions (#93)
Skip worktree context for Supercharge sessions: When a session's first message starts with /using-superpowers, the worktree context injection is bypassed entirely. Supercharge sessions already carry full plan context, so prepending the worktree context just adds noise and pollutes the prompt.
Detection logic: Extracts the first text part from either a plain string message or an array of message parts, then checks if it starts with /using-superpowers. If so, the worktree path is immediately marked as "already injected" without performing a DB lookup.
No change to normal sessions: Non-Supercharge sessions continue to get worktree context injected on the first prompt exactly as before — the existing DB lookup, context prepend, and error-handling logic is preserved.