Skip to main content

Task

Task is Enia's execution engine. When you click Apply on a Signal card or ask Enia to make code changes in Chat, a Task is created to execute the work in the background.

How Tasks Work

Task Creation

Tasks are created from two sources:

SourceTriggerExample
SignalClick Apply on a Signal cardApplying a security fix
ChatAsk Enia to modify code"Refactor this function to use async/await"

Task States

Queued → Running → Finished / Failed / Stopped
StateDescription
QueuedWaiting to execute (tasks run sequentially)
RunningCurrently executing
FinishedCompleted successfully
FailedExecution encountered an error
StoppedUser cancelled the task

Note: Only one task runs at a time. Others wait in the queue.

Task Actions

Available Actions

StateActions
Queued[@] Reference in Chat, [Del] Delete
Running[@] Reference in Chat, [Stop] Cancel
Finished[@] Reference in Chat, [Undo All] Revert, [Redo] Re-run, [Del] Delete
Failed[@] Reference in Chat, [Undo All] Revert, [Redo] Retry, [Del] Delete
Stopped[@] Reference in Chat, [Undo All] Revert, [Redo] Retry, [Del] Delete

Understanding Actions

[@] Reference in Chat: Opens Chat with the task context pre-filled. Use this to discuss or iterate on a task.

[Undo All]: Reverts all file changes made by this task back to their pre-task state.

Warning: Undo All requires confirmation. If you made manual edits during task execution, those edits may also be reverted.

[Redo]: Re-runs the task from the beginning.

[Stop]: Cancels a running task. Partial changes remain applied.

Command Confirmation

When a task needs to run shell commands (like npm install), it pauses for your approval:

ButtonAction
RunExecute the command
Run for TaskExecute and auto-approve similar commands for this task
SkipSkip this command, continue with next step

Request Consumption

Each task execution is dynamically priced based on task complexity.