Skip to content

Task sessions

Utming has one conversation per owner. The main chat session coordinates work. Each independent task gets a saved session that reports to the same conversation.

Quick answers, simple lookups, status questions and short work in your connected apps, such as reading, drafting, sending, forwarding or deleting a few emails, stay in chat. Other substantial work, including multi-step work that can finish in one sitting, an outside wait, or your explicit request to track work starts a saved task, and Utming chooses that itself without asking you for an execution mode. A new independent request while other work runs starts its own task; corrections and related updates go to the existing task. A new message in a chat or task closes that session's older open questions; other tasks keep theirs.

flowchart TD
  owner([Owner]) <--> chat[One conversation<br/>Web · Telegram · WhatsApp]
  chat <--> main[Coordinator<br/>Chat session]
  main -- starts or updates --> tasks[Task sessions<br/>A · B · …]
  tasks <-- replies and reports --> chat
  main <--> ledger[(Task ledger)]
  tasks <--> ledger
  main <--> shared[Workspace<br/>Owner memory]
  tasks <--> shared

The conversation is the owner's view of the work. The coordinator assigns work and routes ordinary follow-ups. A task session does the work, asks its own questions and delivers its own results. The coordinator does not rewrite each result through another model call.

Explicit replies go to the selected task before the coordinator runs. The task's message identifies which work the owner is answering.

Concept Purpose Lifetime
Task The goal, completion condition, progress and result. Until completed or stopped; its record stays available.
Session The saved Pi history and execution context for that work. Across turns, questions and owner updates.
Turn One execution started by a message, dispatch or resume. Until it succeeds, waits, fails or is cancelled.

A task can need several turns in the same session. A successful turn does not mean the task is complete. The task calls finish after it checks its completion condition. A turn that ends with its final answer, as final text or with send_message intent final, also closes the task as done when nothing else is planned: no wait, later check or queued owner update. The result is that answer.

Each session runs one turn at a time. Different sessions run in parallel. There is no task limit of three. Browser capacity is a separate resource limit; a task that does not browse does not open a browser.

The tasks table is the source of truth for task state. Task messages, web cards and Telegram status replies show that state; they are not separate task records. The model writes every task message from that state, in the conversation language described in Agent runtime, even when the task was requested in another language.

Record Owns
tasks Goal, completion condition, brief, source owner message, session and message links, steps, progress, update revisions and result.
turns Execution state, session, task, reply channel and resume links.
messages Owner input, questions, replies and delivered file links.
turn_events Tool and helper activity for the task's activity view.
model_usage Model requests and their cost.

Each turn sees up to 100 tasks of the active conversation, open ones first, then finished ones with their results, newest first. After a conversation reset in a development build, tasks from the archived conversation stay saved and on the Tasks page, which lists up to 100, open ones first, but leave the turn context.

A model-written task list in the workspace does not replace the ledger. The existing turn queue runs the sessions. The task system does not add another scheduler or cost ledger.

  1. The owner gives the coordinator an independent goal. The coordinator uses task start with a title, completion condition, brief and planned steps.
  2. One transaction saves the task, posts its first message and queues its first turn. A task started from chat uses its task ID as the session ID. The original owner message stays linked to the task.
  3. The worker opens that saved session. The task updates its steps as it works. Text the model writes between tool calls becomes the task's live status: its card shows it, with the website while it browses. It isn't posted, because the task's first message already says what it is doing. Its questions, files, deliberate send_message updates and final reply reach the conversation; if it ends without a final reply, its last such text is posted instead. A reply from the owner while the task works gets its answer as a message. Event and schedule runs stay quiet.
  4. If the task needs the owner, it asks a question and waits. Other sessions continue.
  5. A reply to the task's first message, question, file or result continues that task, even if it finished or stopped. An ordinary message goes to the coordinator, which can forward the exact owner message to selected open tasks. If the latest message is a finished task's result, an explicit retry can reopen that task with its original request, provided the owner started it. Web and desktop match the shared conversation. Chat apps match their own chat. If the target is unclear, Utming asks. In web and desktop, a task working on a message routed this way shows its working dot, title and live status under that message. It takes the place of the chat's own activity line until the task posts a message, finishes or needs the owner. Selecting it opens the task.
  6. The task checks its completion condition, shares any result files and calls task finish. Its final reply goes directly to its message in the shared conversation.

Each owner update has a revision. The server records delivery at a model boundary. A task cannot finish while an owner update remains queued. A correction closes the old waiting turn, so an old pending approval cannot execute after that correction. Saved setting changes bind that owner-input revision as well as the setting's version. Chat and task work use the same owner-evidence record, so a chat-started task keeps up to five owner chat messages from the 24 hours before it started. These messages only supply context. Later chat adds no permission. A schedule created or changed by that task retains the exact checked owner inputs and any proposal they answer. Later unrelated chat cannot add permission.

The background observer starts a separate task for an outside action, question, or approval. A stable key for the source record and change returns the existing task. The task keeps event authority and the normal Trust check. Its wait leaves the observer free. A task started during quiet hours begins when they end; its first turn stays queued until then.

A schedule or other event session can also create a task record for its work. It keeps its existing session.

All sessions use the same workspace for the owner's conversation:

/workspace/<thread ID>/
├── shared/
└── tasks/
├── <task A>/
│ ├── drafts/
│ └── outputs/
└── <task B>/
├── drafts/
└── outputs/

Task folders organize working files. They are not security boundaries. A task can read another task's output by its path. It must not overwrite another task's working files.

Each session has its own saved Pi transcript. Owner memory is shared and stays outside the sandbox. Sessions load current memory and task state when they start or continue. The main chat receives reports from other sessions in its conversation context.

Shared storage does not put every change into every active model context. The server delivers addressed owner updates. Tasks read current ledger state and shared files when they need them. Use saved reports and file paths to pass results between tasks; do not depend on another session's private history.

Coordination goes through the main session and ledger. Task sessions cannot forward owner updates to other tasks. They can read shared outputs. delegate is different: it runs temporary helpers inside a turn, returns their results to the parent and does not create saved task records.

Shared information does not grant permission. For a task started from chat, the trust check uses the conversation that led to the task, including the original request, and the messages sent to that task. Other task reports, files, briefs and memory cannot authorize an outside action. See Approvals.

In web chat, a task has a chip under its first message and a card that opens from the tasks line, with its current work, steps, completion condition, Reply and Stop. Scheduled shows a compact preview for each open and finished task. Expand it for steps, activity, the completion condition and task controls. Activity shows tool and helper events, not private model reasoning. In web and desktop chat, each message the task posts quotes the owner message it belongs to: the latest owner message the task had taken in when it posted, or else the one that started it. Selecting the quote jumps to that message.

Telegram shows the task as messages Utming writes. If its first message arrives as one short text message, a quoted progress section in your language updates there without another notification, then is removed when work stops. Other message types keep typing status only; see While Utming works. Each task keeps its own message and reply target. Its questions and result reply to that first message. /tasks sends a replyable status message for each open task. Reply with /status to inspect it or /stop to stop it. Native reply links for text parts and files select the same saved task in Telegram and WhatsApp.

These are views of one task record and session. A pending approval remains bound to its exact question and action. An old status message cannot approve a later action. Website sign-in and payment steps remain in the Utming app.

See Track tasks for controls and screenshots.

  • Stop one task cancels that session's running, queued and waiting turns and its helpers. Other tasks continue. Only the owner or the main chat acting on an owner message can stop a task; scheduled and background runs can't. An outside action that already started can still finish.
  • Main Stop stops active work and closes all open tasks. Schedules stay configured.
  • Stop everything from chat (task stop without an ID) cancels the running, queued and waiting turns of every session except the main chat, which includes tasks, scheduled runs and app checks, and closes all open tasks. The chat turn that asked keeps running to report, and later chat messages stay queued. Schedules stay configured.
  • Restart and leases keep task records, saved transcripts and waiting questions. Running turns hold a short-lived server lease and monotonic fencing token; if a worker stalls or the process stops, the lease sweeper interrupts the turn and revokes its fencing token so late writes cannot land. A single bounded auto-retry runs only on provably read-only, pre-commit transient model or transport failures—never after any side effect, approval or reply has started. Otherwise the run fails and can continue from a new owner message or the Retry action when no outside action ran. The task's interruption notice names the task and replies to its own message when the model can prepare it, so you can tell it apart from a chat request that was interrupted at the same time. If the chat had already handed every request to a task that is still open, only the task sends a notice. It says nothing was sent, submitted or deleted since your last message only when the trust check let no outside action run and no confirmed action ran in that work.
  • Durable waits can attach a wakeCheck (url_change or file_exists) alongside nextCheck so the server checks the target in code and reschedules without waking the model when nothing changed.
  • Reset archives the conversation, closes its open tasks and gives the next conversation a new workspace and chat session. Earlier records remain stored.