Skip to content
Loamis build console Read only

toolCall

READ ONLY: generated from the specification

4 states, 6 events, 14 rules. Initial state: pending.

Transition graph

pendingrunningcompletederror

Double outline: the initial state. Dashed line and ◆: the rule has a guard.

Transitions, as a list

  1. pending, on started, to running
  2. running, on succeeded, to completed
  3. running, on failed, to error
  4. pending, on toggle, to pending, guarded: ctx.expanded == true
  5. pending, on toggle, to pending, guarded: ctx.expanded == false
  6. running, on toggle, to running, guarded: ctx.expanded == true
  7. running, on toggle, to running, guarded: ctx.expanded == false
  8. completed, on toggle, to completed, guarded: ctx.expanded == true
  9. completed, on toggle, to completed, guarded: ctx.expanded == false
  10. error, on toggle, to error, guarded: ctx.expanded == true
  11. error, on toggle, to error, guarded: ctx.expanded == false
  12. completed, on showAll, to completed
  13. error, on showAll, to error
  14. error, on retry, to pending

Live runner

Current state: pending

Context

expanded
false
outputShown
false
hasError
false

View flags now

status
"pending"
statusText
"toolPending"
ariaBusy
true
showSpinner
false
ariaExpanded
false
showDetails
false
showError
false
showFullOutput
false
toggleEnabled
true
showAllEnabled
false
retryEnabled
false
defaultFocus
"trigger"

Effects emitted

None.

Trace

No event sent yet.

States

pending

initial

View flags

status
"pending"
statusText
"toolPending"
ariaBusy
true
showSpinner
false
ariaExpanded
false
showDetails
false
showError
false
showFullOutput
false
toggleEnabled
true
showAllEnabled
false
retryEnabled
false
defaultFocus
"trigger"

Rules that leave it

  1. started to running
  2. toggle to pending when ctx.expanded == true ; sets expanded := false
  3. toggle to pending when ctx.expanded == false ; sets expanded := true

running

View flags

status
"running"
statusText
"toolRunning"
ariaBusy
true
showSpinner
true
ariaExpanded
false
showDetails
false
showError
false
showFullOutput
false
toggleEnabled
true
showAllEnabled
false
retryEnabled
false
defaultFocus
"trigger"

Rules that leave it

  1. succeeded to completed ; sets expanded := false, hasError := false
  2. failed to error ; sets expanded := true, hasError := true
  3. toggle to running when ctx.expanded == true ; sets expanded := false
  4. toggle to running when ctx.expanded == false ; sets expanded := true

completed

terminal

View flags

status
"completed"
statusText
"toolCompleted"
ariaBusy
false
showSpinner
false
ariaExpanded
false
showDetails
false
showError
false
showFullOutput
false
toggleEnabled
true
showAllEnabled
true
retryEnabled
false
defaultFocus
"trigger"

Rules that leave it

  1. toggle to completed when ctx.expanded == true ; sets expanded := false
  2. toggle to completed when ctx.expanded == false ; sets expanded := true
  3. showAll to completed ; sets outputShown := true, expanded := true

error

View flags

status
"error"
statusText
"toolFailed"
ariaBusy
false
showSpinner
false
ariaExpanded
false
showDetails
false
showError
false
showFullOutput
false
toggleEnabled
true
showAllEnabled
true
retryEnabled
true
defaultFocus
"retry"

Rules that leave it

  1. toggle to error when ctx.expanded == true ; sets expanded := false
  2. toggle to error when ctx.expanded == false ; sets expanded := true
  3. showAll to error ; sets outputShown := true, expanded := true
  4. retry to pending ; sets reset the context
All machines