Skip to content

feat(desktop): goal chip lacks pause/resume and looks identical whether running or paused #3024

Closed

Description

@me2seeks

Problem

The desktop goal chip (SessionContextLayer) shows a pulsing dot, iterations/maxIterations, and a stop (clear) button. Three gaps:

  1. A paused goal looks exactly like a running one — same pulsing accent dot, same counter — even though a paused goal burns nothing. use-session-goal.ts already surfaces paused goals; the chip just doesn't render the difference.
  2. No pause/resume affordance. The bridge only wires goal:get and goal:clear (runtime-host-session-domains-ipc-main.ts), although the host protocol fully supports goal.control with pause | resume | clear and resumeFromControl restarts a paused goal without spending a model turn.
  3. No elapsed time or token budget. The projection already carries setAt, pausedAt, tokensSpent, tokenBudget; none are shown.

Proposal

  • Wire goal:pause / goal:resume through preload (window.maka.goal.pause/resume) with the same optimistic-revision retry as clearGoal.
  • Make the chip status-aware: distinct label/style for active vs waiting vs paused (paused must not pulse), and show elapsed time (from setAt, frozen at pausedAt) and tokensSpent / tokenBudget when a budget exists.
  • Add a pause button for running goals and a resume button for paused goals next to the existing stop (clear) button.

No runtime or protocol changes required — surface wiring only.

Generated-by: Maka

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions