Local workspace in Desktop
While the assistant is working, click the animated flock to expand it. You can pause the flight and click a bird to watch it hatch. The scene closes when the turn ends.
Use the magnifying glass in the session header to find text in the loaded conversation. Enter and Shift+Enter move between matching messages. Escape closes search. To collapse a long list of tool calls, use the chevron at the bottom of the list. Select a mark on the conversation rail to jump to that event. Hover over or focus a mark to see its author or event type and a short preview.
Text and attached images stay with their conversation when you switch sessions or return to Harness in the same window. While Desktop sends an instruction, you can switch to another conversation. Desktop clears the submitted draft once it confirms delivery or shows the draft again if delivery is refused. In narrow panes the composer keeps one toolbar row. The active Company model name stays visible.
When Desktop is connected to Company, the same Harness sidebar holds local projects and remote conversations. In a new conversation, open the execution menu beside Attach, then choose Remote runner and an available runner and project. Open the gear to see the remote project and any execution settings offered by the destination. Local and remote drafts stay with their own conversations while you switch.
If a local conversation is already open, starting a separate remote conversation requires confirmation. In an open remote conversation, choose Local to see whether you can return that conversation to a Desktop. Choose Switch to Local to work separately and reopen the remote conversation from the sidebar. When a return is in progress, reopen the conversation to see its progress and available actions.
The toolbar shows the current access level. Open the gear for execution location, planning, a Local Room, Guard, and Computer Use when available. Choose Repository and folders at the top of the menu to add a folder or manage the open project’s files, branches, and changes. Model, reasoning effort, and Send stay in the toolbar.
The gear opens Repository and folders in a separate dialog with the current folder and repository controls. Cancel the folder picker to return to that dialog. Opening a folder returns to the composer for that folder.
In the browser view of Desktop, open Repository and folders in a local session to browse its workspace and preview text files. Use the native Desktop window to switch Git branches.
After a turn that changes files, open its changed-file group to inspect the patches. Added and removed line totals appear when Desktop has a complete patch for that turn. A shared working folder with another active session or background task can show just the paths.
Local conversations belong to your Desktop. You can reopen a saved conversation from the sidebar after changing the selected Space or connecting to a Community server.
The Computer Use button starts or stops the bundled helper while Desktop stays open. The menu shows whether the helper is ready, needs a macOS permission, or is blocked by policy.
Choose which apps the helper may control under Desktop → Computer Use → Allowed applications. If you change the list while the helper is on, Desktop offers Restart to apply the saved list or Later to finish your work. Turn the helper off and on to apply changes once its current work is complete. If a conversation is still running or contains unsaved edits, finish that work before restarting Desktop.
Use Open System Settings and Check permissions for macOS grants. If macOS asks you to quit and reopen the app, choose Restart Desktop in the permission check card. The restart dialog lets you continue working if Desktop is busy.
An autonomous Desktop session looks for allowed windows on this computer. For example, ask Harness to read the result displayed in Calculator after allowing that app and opening its window. Actions that require approval still wait for you to review them.
Open the session’s … menu and choose Fork conversation to copy the confirmed dialogue into another session in the same folder. The copy includes earlier messages and the latest confirmed reply, including one completed after a subagent reports back. The original session can keep working while Desktop creates the copy. The new session waits for your next message. Pending decisions, background jobs and subagents stay with the original. The action is available after the first confirmed reply, including from saved history after you reopen Desktop.
The square Stop button interrupts the current OpenCode response. Once the session is ready, you can send the next message in the same conversation.
In Desktop → Local folders, manage the folders available in
Harness. Use Use by default to select a folder for new local sessions.
Project paths stay on this computer. Start sessions, send instructions and
open session history in Harness.
In the Desktop panel, Local folders shows a plugin policy action for each folder when the native app can change the policy and the workspace has installed plugins. Open it to disable or restore a plugin for that folder.
Add the project folder in Desktop, then open Harness in the local browser. Choose a registered project and select New session. Browser-created sessions start with read-only access and the default enabled local model profile. Use the access menu in the composer to change the mode for the next prompt. You can send instructions and continue the conversation while the session is active. When you reopen the session after restarting Desktop, the recent completed messages and replies are available in order.
As the conversation grows, Desktop asks OpenCode to compact model context automatically. The model continues with a checkpoint summary and recent messages. Your saved messages stay in the conversation. If the latest message or its attachments are still too large for the selected model, shorten that input and send it again here.
Questions and permission requests appear above the composer in Desktop and the local browser. If OpenCode offers a custom answer, expand Write a custom answer. The checklist starts as a compact row above the composer. Select the row to expand it. The circular down arrow returns to the latest message when you scroll up.
The status above the composer updates while the local agent runs a tool or has active background work. To see the command and its output, open Background jobs.
Create local profiles in AI and models → Create Profile. The same form is available in the Harness profile menu. It accepts a custom base URL and request headers. For a local session, choose a local profile. For a server session, choose a profile offered by that server. In a new local session, open the model menu or type /model. Open a profile to see the models it allows, then select a model and, when supported, its reasoning effort.
For images in a local session, choose a model that accepts images and enable Supports visual (multimodal) in its profile. Then attach a PNG, JPEG, GIF, or WebP in the composer. The active Guard policy still applies. A policy that blocks attachments it cannot inspect can refuse an image. Desktop refuses a damaged PNG during upload. Export a fresh copy and attach it to the same draft.
The local session and its subagent can also accept text, PDF, Word (.docx), PowerPoint (.pptx), Excel (.xlsx), and supported audio and video files. You can attach up to eight files per message, 16 MiB per file and 32 MiB in total. Select a file name in the conversation to download it. The local engine extracts text from PDF, Word, PowerPoint and Excel within the extraction limits and makes it available to the conversation. Scanned pages without text, audio and video remain available for download. A subagent instruction with new model settings waits in its queue while current work finishes. The dialog shows when the instruction is delivered and when the model or reasoning setting is confirmed.
Use the built-in coder-mockarty-platform skill to find a Mockarty workflow and its verification steps. coder-mockarty-computer-use covers native applications. coder-mockarty-extensions helps choose and review a skill, Mockarty plugin or OpenCode plugin. Each workflow uses the tools and permissions available to that session. If the session shows a partial tool list, ask the agent to search Code Mode for the Mockarty gateway, then look up the action in the Mockarty catalogue.
For mocks, APIs, contracts and test plans, choose coder-mockarty-testing. For wiki, knowledge, issues, boards, Rooms and discussions, choose coder-mockarty-team-work. To check execution placement, start work on a connected runner or move a session, choose coder-mockarty-execution. These skills use the actions available to the current session. A server-connected model does not by itself expose team workspace tools.
For on-prem connections, use coder-mockarty-missions to work with Assistant missions and their recorded results. Use coder-mockarty-security-review to triage existing Security reports and track remediation. The active workspace and the server’s module permissions determine which tools the session can call.
Use coder-mockarty-sdk-cli for Go, Python or Java tests, Pact contracts, Allure reports, CLI runs in CI and migration from existing tools. Start with one test in your existing stack and compare its result and report before moving the suite.
On a Company-connected Desktop, the workspace MCP can read room updates with room_wait when Rooms and room membership are available. The tool returns new messages and a cursor for the next call within that workspace.
A host can bind Company MCP to an agent that has already joined a team Room. With current chat write permission and Processing access, call room_members with empty arguments ({}) to list the selected Room’s participants. Pass the agent’s exact id as assignTo in room_post to send a question, task or blocker. The recipient can read it through room_wait. A Room message does not start a model turn. If delivery is uncertain, retry with the same UUID v4 idempotency key and the same message.
A connected Company Harness agent with write access can find its assigned item using room_items, then call room_resolve with the item ID and a short result. The reply appears under the original message and reaches the author’s conversation on its next explicit turn. If delivery is uncertain, repeat with the same item ID and result.
In a Company Harness started with a Room, confirmed incoming and outgoing messages appear as separate entries, with the other participant and the time. The original Desktop registers the session’s participant before its first turn. Harness can quote an assigned agent’s reply on your next explicit message and marks the turn that included it. Routine renewal of the same Company sign-in keeps the current turn and Room connection active. When the maximum sign-in period ends, sign in again. The earlier messages and Room link are hidden if you lose access. Use the Room for the full discussion.
The Desktop notification bell shows addressed requests from Team Rooms in the active Company Space. Choose Open to open the Room in Discussions. The server marks the notice as read after the Room opens. Switching Spaces updates the list. Bulk read and clear actions apply to the notifications on this Desktop.
In a local Native Harness session with Full access and Mockarty MCP enabled, the first confirmed subagent gets a private coordination room shared with its parent. The room’s task list records the subagent’s short assignment when the engine provides one. Ask the agent to check the current room. The same session keeps its room when reopened with the original profile. The private room is part of local Harness, including Community. Agents can ask the Harness tool catalogue for their current addressed messages. Team rooms use the workspace’s access rules.
Ask the parent or a confirmed subagent to send a question, task or blocker to another participant in this room. With Full access it can use harness_room_post and choose the recipient from current_namespace. The recipient can ask the agent to check harness_room_read for incoming messages. The coordinator can request harness_room_read with view: "conversation" to see both sides of its recent exchanges. Outgoing messages show the coordinator as the author and give the recipient label when available. The accepted status confirms that the message was saved for the recipient. Checking the Room does not send a read receipt. For an invalid recipient, choose another exact participant from the roster. If delivery is uncertain, retry the same message with the original operation ID to recover its receipt. The private roster includes each subagent’s last confirmed status when available.
With Full access, the next prompt you send to that agent can include up to four addressed messages from its private Room. The model receives the earliest messages it has yet to see. The model receives them as quotes with the original sender. Messages remain readable in the Room and never start a model turn on their own.
The coordinator’s chat shows its latest incoming and outgoing messages in the private or local team Room. Each entry has its direction, the other participant and the time. For a subagent in a private Room, the chat shows its task title when available. Resolving a question keeps the original message in the Room. Reading messages leaves the session in its current state.
To coordinate independent sessions on one standalone Desktop, select Full access and enable Mockarty tools in the new session composer. Open the gear, turn Plan off, and turn Local Room on. If a setting is missing, the room stays off and you can start an ordinary session. You can share an objective that helps the other agents find the right person to ask. Each participating session selects the Room explicitly. Its coordinator and confirmed subagents appear in the shared roster, where you can ask the agent to use the recipient’s exact ID. The Room is specific to the current Local profile. Addressed messages are available to the recipient and can inform their next manual turn.
In Agent Chat, ask which Harness sessions are visible in the current workspace and where they run. When Rooms is available to your account, you can also ask Agent Chat to find, read, or join a room and post a message there. Room membership and workspace permissions still apply.
Open a subagent’s card to see the Local Room questions, tasks and blockers it sent or received. Each entry shows the other participant and its direction. You can reopen the saved chat after restarting Desktop while that subagent remains a member of the Room.
Ask Agent Chat to start an interactive session on a named connected runner project. It can list your project choices, then queue the first instruction and return a link to the session. The execution host uses its configured model.
What you need
-
Mockarty Desktop (installed app).
-
A compatible OpenCode backend provisioned for the coding host. If Harness reports that the backend is unavailable or refused, ask the
administrator who provisioned Desktop to check the backend and its version. -
An enabled profile with a provider and model. Add the API key in the profile if the provider requires one.
-
In standalone mode, pressing Send or New session enables local coding for the current Desktop profile without a second confirmation. Sending to a saved session also restores its local host after an application restart. This does not change the selected tool access level or Guard policy. Other local coding setups use consent in the runner console (Coding host, press Start).
Reloading the Harness window preserves the selected folder. If the
folder becomes unavailable, choose it again before starting a session.
Start a session
- To work in an existing folder, open the gear in the Harness
composer. Choose Repository and folders, then Select Folder.
Pick the folder in the system dialog. Git and a repository URL are optional. - Choose a profile in the composer, type an instruction, and press Send.
With no folder selected, Desktop creates a project in its own workspace. - The local session opens with the instruction you sent. The transcript starts with your own
instruction, then shows the assistant’s answers, tool calls, changed files
and terminal output as they happen. Open a failed tool call’s output to
read the reason reported by OpenCode.
In a narrow window, use Sessions to open the list over the conversation. Select a session or press Escape to close the list.
The first instruction names the session in the list. You can rename it from the session menu. While OpenCode is working, use the square in the message box to stop it. This works in the Desktop app and its local browser view.
To set or manage a goal for the current local conversation, open Settings beside the message box and choose Session goal. Use Pause next to the goal to let the current response finish and stop automatic continuation. Use Play to resume the goal when the session is ready. If the last continuation has no confirmed outcome yet, the reason appears next to the goal. Goals for a local conversation stay on that Desktop when it is connected to a Company server. Use the Desktop app or its local browser view to manage them.
If Desktop could not confirm that a goal turn began, the goal shows Outcome unknown and automatic continuation stops. Check the conversation for any work that did happen, then choose Archive goal. This keeps the original goal and conversation in history. Start a new goal for any remaining work.
For tool calls in the local Harness, use sessionId: "here" to list the current conversation’s goals. When reading a different saved conversation, use its Mockarty Harness ID (the local-… ID).
The chat displays Markdown in prompts and replies. Use the copy button below a message to copy its original Markdown. Open Project tools from the Desktop composer to review files and changes. The changed files below a response show added and removed lines when a diff is available. For a small new text file, the count is also available in folders without Git.
In the composer, type @ to find a file from the active session, or / to see commands and skills available in the current workspace. Use the arrow keys and Enter to choose an item. Both menus work in an existing draft. Choosing a command keeps the surrounding text. Switch workspaces before choosing a skill for a different workspace.
To request a built-in skill, type part of its name after / and choose the matching entry, for example coder-mockarty-platform. The composer adds a request to load it to your draft. You can edit the draft before sending. The running assistant can report which skills its execution host actually loaded. When the Local session uses Mockarty MCP, / also lists descriptive skills saved in the current workspace under Workspace skills. Selecting one adds a request to load it through run_skill. The session checks its current access when the prompt is sent. With the built-in Mockarty MCP enabled, ask the assistant to call get_coder_capabilities to check which tools the current workspace supports. The check is available in Community.
When Desktop is connected to a Company server, its owner can verify the selected workspace through the coding capabilities API using diagnose=1. This read-only check confirms which tools the server offered and which workspace answered. It does not start an OpenCode turn.
Use /model and /effort in a new session or to set up the next turn of an idle or resumable local session. /permissions, /guard and /tools open the available controls. /plan selects OpenCode Plan mode for a new or open local session. Plan mode limits workspace changes and shell commands. /build returns to Build mode with the permissions you selected. Both commands preserve the draft and wait for you to send the next message. Change permissions separately in the access menu. /mcp shows the workspace catalogue. Before starting a local session, use it to turn off the built-in Mockarty MCP if you want the session to run without those tools. Reopening the session keeps that choice.
In a running local session, get_coder_capabilities diagnoses that conversation. It reports its effective access and revision, the authorized MCP catalogue, and the outcome of one harmless read. Toolkit and skill-set availability use the same session selection. Documentation search and access to the bound Agent Room are reported separately. If the session chose no MCP, its diagnostics report that choice.
In the same session, plugin_list and plugin_get read installed state in the current Space. Global inventory and installation are administrator workflows. The marketplace preview identifies when a reviewed installation request is required.
Search the public web
In a Local Harness session that offers OpenCode’s websearch tool, ask
for a public web search and source links. On first use, a prompt lets you
allow a search provider, choose a particular provider, or disable search.
Choose a provider to send the search query to that service. Use public
search terms. When results are available, ask the assistant to link to
the sources it used.
In get_coder_capabilities, the browser search row identifies the Mockarty
MCP catalogue it checked. If OpenCode’s inventory is unverified, check the
tools offered in the current chat before reporting whether it can search.
For a frontend backed by Mockarty mocks, keep the frontend in the project and use the mocks as its API. current_namespace.mockResolverBaseUrl supplies the local API base. After test_mock, open the returned browserUrl to see that mock response. Use your project’s dev server or a local HTTP preview to open the frontend.
External MCP tools in Local Harness
Select the Local profile in the header to manage external MCP tools for Desktop. The local workspace owner can do this in the Desktop window or its browser interface. Open Company connections in the Company server’s Marketplace.
If an external client cannot reach the Desktop MCP port, check the mcp_server entry in the health report. A port conflict can affect external clients while Harness tools continue working inside Desktop.
- Open
/mcpin the Local Harness composer and choose External MCP tools. - Choose Manage MCP connections to open MCP Marketplace in Settings. Add an integration of type MCP, enter its HTTP endpoint and any required authentication, then save it. Use the Marketplace connection check if the tools do not appear.
- Return to External MCP tools and select the tool under the intended server. Start a Local session with Full access and Mockarty MCP enabled. In the session, ask the assistant to use the selected tool by name.
Removing a selection stops further calls from open sessions. A running executor continues to use the connection and tool schema it approved at startup. If either changes, that executor stops offering the tool. When Desktop starts an executor for a new or resumed conversation, it reads the local owner’s current selections again. After changing a connection, its credentials, or a tool schema, review the selected tools in External MCP tools before starting or resuming a conversation. The assistant receives the tool’s schema. Connection credentials stay in Settings.
In Project files, open a folder to see its contents and select a file for a
read-only preview. A session in a Git repository shows HEAD. For a standalone
session opened in the current Desktop window, a folder without Git shows its
current files.
To choose specialist sets for a new local session, type / in the composer in Harness and select an available set under Skill sets before sending. Select the same set again to remove it. Desktop checks that the selected sets can run with the session’s tools.
In the local workspace, the Mockarty testing, Team workspace and Remote sessions sets require the built-in Mockarty MCP. Mockarty extensions requires an engine with skill-resource support. A set provides a workflow. Module tools, plugin installation and external MCP connections still depend on the selected environment and current permissions.
New session in … offers the selected folder, or the most recently opened available folder if you have not selected one. The session history groups your sessions by folder.
When folders share a name, the session history shows their paths below the project names.
Local session history and reinstalling Desktop
Desktop stores session history in its local data directory, alongside its project list and the data OpenCode needs to resume work. On macOS the standard location is ~/.mockarty. The history is separate from your repository. Reopening a known folder in the same Desktop data directory shows its saved sessions. A Desktop instance with a new data directory starts with its own history.
Replacing the app bundle keeps the data directory. To back up local work, fully quit Desktop and back up that directory as a whole. Keep your Git workspace backed up separately. Restore the data directory with Desktop closed and use a compatible version. For a portable copy of a conversation or for moving it to another execution environment, use the session transfer flow when the action is available.
Open Desktop → Data and history in the installed app to see the active data folder and export or import a .mkhistory backup. The backup is encrypted for the same operating-system account. Keep access to that account’s credential store. Existing sessions are skipped during import. Before restoring into a fresh profile, add the original project folders. Session archives restore local history. Continuing a restored local conversation requires its OpenCode data. A conversation imported into a fresh profile uses the local model profile selected for coding on that Desktop or its default local model profile. If neither is available, choose an enabled model in the conversation before sending. Working source files and provider credentials are separate. Clear cache removes downloaded content while keeping the conversation history and working data.
Continue the same conversation by sending another instruction. Stopping a turn
does not delete its history. A saved local session can be resumed when its
OpenCode history is available; older text-only records remain read-only.
You can change the access level in a saved, resumable conversation before sending its next instruction. The setting is saved without starting the model. On continuation, Mockarty verifies the current permissions again. In Build mode, a change to access on the bundled OpenCode engine takes effect for new tool actions in the current turn as soon as the engine confirms it. A question already on screen still needs an answer. A change to Plan or Build applies between turns.
Use current_namespace inside the local chat to read harnessSession. It
identifies the chat and may include phase, status (idle, running, or
needs_input while active), and the last recorded activity time in touchedAt.
When available, rootTurnToken identifies the latest accepted root instruction.
The tool takes no session selector. coder_sessions_list lists registered
coding sessions and excludes unregistered private chats. Your current account
and workspace permissions still determine access.
For a relative reminder (for example, “in two minutes”), the assistant can read the current UTC time from current_namespace.serverTime immediately before scheduling.
You can open a separate manual session for another task in the same folder
while the host has a free execution slot. These sessions share the files and
the current branch. To work on a different branch while another session is
active, open a separate checkout.
The instruction is saved on this computer before the session is created, so
closing Desktop while the session is starting does not lose it. If delivery
fails for a temporary reason, the screen retries by itself a few times. A row
that still cannot be delivered shows the exact reason and offers Retry now,
Reuse in a new session and Dismiss. An instruction the session already
accepted is never sent twice.
If a background result is still being processed, your next instruction stays in the queue for this session. Select Retry now when the session is ready.
When a session stops, send another instruction to continue it. For older read-only records without resumable OpenCode history, use Start a new session in the same folder.
The screen follows one session at a time. Opening another session changes the
transcript and pending question or permission shown; it does not stop the
previous session. Stop applies to the session currently shown.
For a question with multiple choices, select up to 32 of the offered options, then
press Answer once. A single-choice question accepts one of its offered
options directly. Text can be entered only for an explicit text question.
Submit each question answer or permission decision once. If its result cannot
be confirmed, the controls stay locked. Use Reconnect to read the current
state of that same session; this does not send the decision again. A new answer
can be entered only when the session confirms that a decision is still needed.
Review and keep the work
- Review changes reads the folder against the commit the session started
from and lists every changed file with its hunks and numbered lines. - Files that were already modified before the session are marked Before this
session; they are shown but are never committed by the session’s commit
action. - Commit changes commits only the files this session changed. Your other
uncommitted work stays exactly as it was.
Inline comments and the verdict
Every added, removed or context line has a + control. A comment records the
author, the file, the side (new or old) and the line, together with the exact
commit it was written against. Resolve closes a comment and Reopen
brings it back; both are stored in the session journal, so they survive a
Desktop restart.
Approve and Request changes record one durable verdict with an optional
note. The verdict is bound to the reviewed commit:
- a later commit makes the verdict stale, and the screen says so instead of
showing the old approval as if it covered the new work; - an approval and a “request changes” for the same commit cannot both be
recorded — the first one stands until the code changes; - an approval recorded for an older commit is kept as history and is never
inherited by a newer one.
Comments and the verdict are mirrored onto the coder mission that owns the
session’s job (when the session was started by a mission). The mission card
shows the verdict, its staleness, and every inline comment.
Publish the branch
Push branch / Open merge request sends the committed branch to the
project’s origin and reports exactly what happened:
- when
originis a GitLab or GitHub repository, the branch is pushed and a
merge request is opened (or the already open one is found). The panel shows
the merge request link and whether it was created or reused; - when
originis a local bare repository or a plain SSH host with no forge
API, the branch is pushed and the result is the typed publish_unavailable:
no merge request is created and no link is invented; - if the forge fails after a successful push, the panel still reports the
pushed branch and commit, plus the reason the merge request was not opened.
Only the NAME of the token environment variable is sent from the screen; its
value is read on the Desktop host at publish time and is never stored or shown.
Browse the project, switch branches and use a design mockup
Open Repository and folders to see the selected project’s name and folder
path before starting a chat. Choose Change Folder to open another local
folder, or Select Folder if none is selected.
A local session can change its working directory within the approved project
and return to the original folder, including in projects without Git. For a
temporary file you want the agent to open with its file tools, put it inside
the approved project.
When a turn changes the working folder, its reply and recorded file activity
stay in the conversation. Desktop skips the combined patch for that turn.
-
Project files lists folders before files. Open a folder, click an earlier
part of the path to go back, or choose Open by path to enter a location.
Selecting a file shows its contents and, in a Git repository, its last commit.
In Git, Search matches path and file names. When the result is limited, the
window says so. Paths outside the project,.gitinternals, symlinks and very
large files are refused with the reason. -
Branches marks the checked-out branch as current. Select an existing
branch, then choose Switch or Delete. You cannot delete the current
branch. To create a branch from the current commit, open New branch, enter
a name, and choose Create & switch. Before switching with uncommitted
changes, commit or stash them. The session header shows the current branch. -
Design reference — choose a mockup by screen name, viewport, and theme
from the current Space, then press Attach design & send. The list shows
mockups from tasks or missions you can view. If the list is empty, first
attach a mockup to a task or mission. The selected session receives the
reference and implementation brief as a new instruction.
Reading and browsing follow the same access rule as Review changes: the
session owner and anyone the project is shared with may look. Creating,
switching or deleting a branch and sending a design stay with the session
owner.
A design handoff stays bound to the selected coding session and Space. Closing
project tools or changing context while the reference loads stops the send.
Once sent, the instruction stays with the original session.
Usage and billing
The local session calls the model with the provider key saved in Desktop, and
the coding engine reports what it actually spent. When a turn finishes, that
usage is recorded in the same usage ledger as assistant and mission spend
(Admin → AI & LLM → Consumption), priced by the price book configured for that
provider and model.
- The usage line under the session header shows the recorded tokens (input,
output and the cached part of the input) and the cost, or says that no price
is configured for the model. - The record is attributed to your account and to the session’s namespace. The
computer itself is never the payer, and another namespace cannot read the
record. - One turn is recorded once. A retry — including a retry after Desktop
restarted — resolves to the same ledger entry instead of charging twice. - If the coding engine reports no token counts for a session, the screen says
so in plain words and nothing is billed for it; no number is estimated.
Navigate events and inspect context
Changed-file messages show the file type, name and directory. A standalone file result in the connected Harness shows them in its collapsed card. Added and removed line counts describe the complete patch shown in that message. A truncated patch keeps its warning and has no total line count. File labels do not grant file access or change the recorded patch.
The blue marks beside the transcript jump to recorded messages, tool calls and file changes. Use the arrow keys while a mark is focused, then press Enter to jump. Reading earlier messages keeps your position when new output arrives.
Tool calls are grouped in the conversation. Expand the group to see each call’s status, then open a call to inspect its input and output.
While Desktop is running, a completed reply keeps the same session available for the next instruction, regardless of how long you wait. You can open multiple local sessions for the same folder. Each has its own conversation and all see the same files. Branch switches and commits through project tools require exclusive access to the folder. Desktop limits the total number of running coding processes to the number of logical CPUs. If the limit is reached, stop an unused session. The timer pauses while the session is waiting. Desktop enables Guard masking by default when no policy has been saved. The working folder and Guard policy stay in force.
Open the gear beside the composer and choose Adding messages. While a turn is active, the composer shows Stop. Press Enter to submit a follow-up using the selected delivery mode, or Shift+Enter for a new line. To queue saves the message. Expand the queue above the composer to review messages in order. After a turn finishes, Desktop sends the next message with its original attachments. The Delete queued message icon removes a waiting message. Stop pauses automatic delivery. Use Retry now on the first queued message when you want to continue.
Use Edit queued message to change the text of a waiting message before it starts sending. It keeps its place in the queue and its attachments. If it starts sending while the editor is open, your typed edit stays available there.
Use Steer beside a waiting text message to send that message to the current turn. Desktop keeps the remaining messages in order. While Desktop is running, the queue advances after each finished turn, including when another conversation is open. An active session goal continues after the queued turns finish.
To chat sends a text follow-up from the same composer to the current local turn when it can receive messages. The message appears in the conversation and shows when it is awaiting delivery. If the turn cannot receive it, Desktop keeps the draft. For attachments, choose To queue or wait for the turn to finish. When the session is ready for an instruction, use Send as usual.
The session list shows a ring while work is running, and a badge when a question or permission needs a response. These indicators update while another conversation is open and when Bell notifications are muted.
A remote Git session shows input and output tokens after the runner reports them. Cache hit is the share of input tokens read from cache. The percentage appears when the provider reported cache use for all measured requests. In sessions started on an older server, tokens recorded may cover only the more recent turns.
Last request context opens the token details for the main agent’s last completed request. The ring compares its input and response with the context limit reported by the backend. Cached input is already included in the input count. Cache hit is the share of input tokens read from the cache. The session usage line displays measured input and output for all recorded requests. Subagent cards show each child’s own usage and the speed of its last measured response. The details show the model and the measurement time; this is not the accumulated session spend or a live estimate of the next prompt. Child-agent usage is not added to this ring. When the backend reports counts but does not supply a model limit, the bar shows the last request’s token count. The percentage is shown only with a confirmed limit. A session with no measured request shows —. Reopening a session preserves the recorded measurement and its time.
The session bar shows the latest response speed when the backend reports output tokens and both start and completion times. Move the pointer over a message or focus its copy button to copy the full Markdown. The time is shown below the message when available. Click an inline project file reference in an assistant reply to open a preview. The conversation groups recorded file changes by turn. Hover over a file for a short preview. The file opens as a comparison when a patch is available, or as a file preview while the workspace is accessible. This is available in Desktop and its local browser view.
Each reply initially shows up to three file changes. Use Show more to expand the list. In the native Desktop app, choose Open in editor in a file preview, a diff, or Repository and folders to open the current workspace file in a text editor.
Open Subagents in the session bar and choose Open on a card to inspect its messages. If you press Stop subagent with the keyboard or the subagent finishes while the button has focus, focus moves to Open on the same card when available, or to the Subagent status filter. While a stop is pending, its button stays disabled across refreshes and filter changes. You can still stop a different subagent. Background jobs lists independent background work. A live child accepts a new instruction when the engine is ready for its next turn. You can specify a model and reasoning level offered by the current engine. The child window shows the model and effort OpenCode confirms. Unconfirmed requests are marked separately. Press Enter to send or Shift+Enter for a new line. You can stop the selected subagent even when it cannot accept input. Closing it returns to the list. A background subagent posts its result as a separate notification in the main conversation. The file comparison shows changed-line counts when Mockarty receives a patch or an exact single edit. The session bar and subagent cards show input tokens, output tokens, and the cache-hit percentage when those values are available. If usage is incomplete, the session bar shows a recorded count when available or indicates that usage was not reported. Hover over that status for details.
In Background jobs, expand a shell command to see its output in the same card. Collapse it to stop reading live output. The card shows the recorded state, the exit code when supplied by OpenCode, and the duration when both start and finish times are known. Stop process requests that OpenCode stop the selected process. Its state updates when OpenCode reports the outcome. A completed process also appears in the conversation, with its exit code when available. The status and notification remain visible when you reopen the conversation. If Desktop only has a saved launch and cannot confirm the current state, it shows Unknown.
The open subagent chat shows new text as it arrives, including replies to follow-up instructions. Its output stays in that chat while the main conversation receives the completion notification. If a subagent is waiting for permission, its Stop button withdraws that subagent’s request. If the main conversation already has an approval request, answer it there to continue that turn. You can reopen the stopped subagent to see its saved messages.
To display a TODO checklist in Desktop, ask the assistant to create and maintain a checklist. The session displays unfinished work above the composer. In OpenCode, the assistant updates it through the Mockarty tool catalogue. Text instructions sent to a working subagent can enter its active turn. An instruction with a selected model or reasoning level waits until the child is idle. The child window confirms the settings when OpenCode reports them in the answer.
To free a local slot, open a running conversation and choose Repository and folders → Close session. Desktop stops its local engine and keeps the conversation history. Open the saved conversation and send a message to continue. The composer’s Stop button interrupts only the current turn.
In an idle or resumable local session, use Model and Reasoning effort
in the composer, or type /model or /effort. Desktop saves the choice
for your next message and retains the conversation. Choose a model from a
saved local profile. A provider that does not accept reasoning effort uses
Auto. If a turn or a background job is still active, wait or stop it
before changing the model. Sending your next message starts the local
engine with the saved selection. Automatic instructions wait for that message.
Reconnect after a restart
When the Desktop window is reopened, the screen reconnects to a session that is
still running and replays its transcript from the start, including your own
instruction. Desktop only recovers delivery from the local queue for the exact
confirmed session. If the original start could not be confirmed, review the
saved instruction in the queue. You can reuse it in a new session or dismiss it.
For a native Desktop conversation with saved engine data, sending your next
instruction after a restart reconnects to the same conversation and keeps its
history. Opening its history alone does not start the coding engine or resend
an earlier instruction. Desktop checks the current profile, project folder and
permissions before continuing. A saved model profile is checked again; a
conversation using the default model uses the current default settings.
If the previous instruction has an uncertain result, Desktop does not replay
it to recover the conversation. Resolve the reported state before sending
again. If the saved engine data is unavailable, including conversations from
older versions that did not retain it, the available history remains readable;
start a new session to continue the work. Project files remain in their folder.
When you send a text message in an open local conversation, it moves to the
conversation with a sending indicator. The composer waits for the delivery
receipt before accepting another send. If Desktop refuses the instruction,
you can edit and send the restored draft. A saved instruction appears in the
conversation’s queue.
Prepare a private conversation for Company
Desktop offers handoff in a Local Git conversation once a Company connection
with an available workspace is configured.
In the connected native Desktop, keep the Company profile selected throughout
the move. The workspace in the header must match the one configured for
conversation sharing. Use the Harness sidebar to switch between the original
local conversation and the Company record. If you prepared the handoff from
the standalone Local profile, activate the intended Company connection to
confirm it.
When an available runner is selected from an open local conversation, choose
Move current session to open the handoff. Choose Start a separate session
to keep the original conversation and start remote work in a new one. The
runner that receives a moved conversation is chosen during reservation.
You can also open the Local conversation in a Git project and select
Prepare Company handoff in the native Desktop window. If only one eligible Company workspace,
product or runner is available at a step, Harness selects it in the list. Verify
the name and click the action button for that step. If several are available,
choose one first. After you click Review, the system dialog shows the
conversation, server, workspace and account. Confirm only if all four match
your intended handoff.
In the selected Company workspace, open Company transfer above the
conversation in Harness and select Confirm Local handoff. Check the folder
and account in the system dialog. If the Desktop needs to connect as a transfer
source, the account must have permission to connect runners in the workspace.
This approval covers only the displayed folder for the transfer.
Use Open Company record to see the new record in Harness.
The conversation and files stay on this Desktop until you approve sending the
protected copy.
You can withdraw preparation in Local before confirming it in Company.
Preparation expires within 15 minutes. A changed conversation or a different
sign-in requires a fresh preparation.
After Company creates the record, open the original local conversation in the sidebar.
In Prepare Company handoff, choose Save protected copy and confirm in
the system dialog. This requires an OpenCode conversation with no active turn
and a clean Git checkout. The dialog shows when the copy is ready. If you close
it during saving, reopen it to check. The copy stays on this Desktop for 15
minutes.
Switch to the same Company workspace and choose Send protected conversation
in Harness. Confirm the account and conversation in the system dialog. Company
saves the approved history for transfer and shows that it received the copy.
If the response is interrupted, repeat the action to check the same copy.
The Company record is read-only during transfer.
After Company receives the protected copy, select a Company product in
Harness and click Use product. The list shows products visible to your
current Company account in that workspace.
Open the original local conversation from the session list. In Prepare
Company handoff, click Approve Git repository. Review the product,
workspace, account and Git address before saving your approval. Close the
dialog and click Check repository in the Company transfer panel. Company
checks the exact HTTPS address
against the chosen product’s delivery configuration and reports the result.
In the same Company workspace on Desktop, choose a Coder Runner and click
Reserve runner. The system dialog identifies the account, product,
repository and destination runner. Reservation leaves the conversation on
Desktop. If the reply is interrupted, click Check reservation. A confirmed
reservation is shown even if its runner went offline. If Company has yet to
confirm a reservation, choose an available runner and confirm again. A copy
already received by Company can be used after the initial upload window if the
original Local conversation and its Git revision still match.
Open the original Local conversation. Select Prepare Company handoff, then
Pause Local conversation for transfer. The pause persists across restarts.
Return to Company and click Send conversation to runner. The selected
runner imports the protected copy without sending a prompt.
Company confirms the import when the selected runner reports that the open
conversation is ready. The original Local transcript remains available to
read. Until the runner accepts the conversation, Cancel request can
cancel the transfer and restore Local access. Use Check transfer result
if automatic confirmation is interrupted or the runner refuses the import.
Confirming a refusal restores Local access. If a response is interrupted,
retry the same action on the same Desktop.
After the selected runner reports OpenCode ready, send a new message in the
Company conversation on Desktop or in the server browser. Importing the
conversation never sends a message. If the send response is interrupted, use
the saved message in that tab to retry the same turn. The reply appears in
the Company conversation. Use Stop to cancel a queued turn or ask its
runner to stop the active turn.
To bring the conversation back to its original Desktop, let any queued and
active turns finish or use Stop. Open the conversation in Company Harness
and expand Return to this Desktop. Choose Request return, then Check for protected
copy beside the message field. You can open other chats while the return
progresses. Reopening this conversation shows its progress and preserves
its draft. Once the copy is ready, open the original local conversation in the
sidebar and choose Import protected copy in Prepare Company handoff. Return to Company and choose Finish return. You can
then continue the conversation in Local by sending a new message.
Import sends no messages. Until the import starts, Cancel request in
Company lets the runner continue the conversation. If the Desktop restarts
or the connection is interrupted, reopen the same conversation and follow
the next action shown. The Local project must have the branch and commit
used on the runner. Publish and fetch any new commits before importing.
To move the conversation to another runner after a completed return, prepare
and confirm the handoff again, then save a new protected copy from the original
local conversation. Company continues to use the same conversation record.
Harness shows the imported conversation in order. When Harness confirms that
the import includes a completed runner message, it shows one copy. Separately
sent messages still appear even if their text is identical. Older runner
messages without a verifiable identity can appear both in the saved copy and
in the replay.
When reading the protected conversation through the API, request
GET /coding-sessions/{sessionId}/hosted?importedHistory=true in its workspace.
An imported message may include coveredCommandId and coveredTurnSeq.
Together with its role, these identify the final runner message already
shown by that imported row. Keep the event replay cursor and original events
when displaying the conversation alongside the import.
If the record was prepared by an earlier Desktop version, prepare and confirm
the handoff again before saving a new protected copy.
Continue a session from another device
The engine process, the working tree and the provider credential stay on the
machine that runs the session. What a second device of the same user can
open is the session’s shared state, and it can send the next instruction.
Desktop publishes the mirror by itself. As soon as a local session accepts
an instruction, the Desktop writes the session to the node’s mirror under
/api/v1/namespaces/{namespace}/coding-sessions. You do not call anything and
you do not copy anything: start the session in Local workspace, then open it
from the phone (or any other device of the same user). A session that has not
received an instruction yet has nothing to continue and stays local.
What the badge next to the session means
| Badge | Meaning |
|---|---|
| Shared: continue on another device | The server accepted the last published state. Another device can open the session and send the next instruction. |
| Local only | No mirror exists yet, usually because the session has not accepted an instruction. |
| Not shared yet — retrying | A publish was attempted and failed (the node was unreachable, busy, or returned an error). The local session keeps running; Desktop retries automatically and publishes as soon as the server answers. |
| Sharing stopped | Publishing authority was revoked. Nothing is published until Desktop is restarted with a valid connection. |
| Sharing paused: retained sessions need review. Local work is preserved. | Desktop cannot verify that retained sharing state belongs to the selected connection. Local sessions remain available; sharing stays off. Returning to the original saved profile and restarting can restore a verified relationship. If the message remains after an update, contact your administrator; do not delete retained work or copy it into another account to clear the warning. |
| Started on another device | A mirror with this id already belongs to a different device. Desktop never overwrites it and never adopts it. |
| Not this account’s session | The mirror belongs to another user. It is never read, adopted or overwritten. |
| Not shared: cross-device sharing is off | You are signed in to a Company server but have not enabled sharing. The session runs here only; nothing is sent to that server. |
Publishing is best effort by design: a mirror failure never stops, cancels or
delays the local session. The session stays usable and its state is published on
the next retry. The operator can disable publishing entirely with
MOCKARTY_DESKTOP_MIRROR=0; every session then reports Local only.
Where the mirror is published
The badge means the same thing in every case; only the address changes.
- Signed in to a Cloud account. The mirror is published to the Cloud
cabinet’s workspace route (/api/v1/namespaces/{namespace}/coding-sessions),
which forwards it to the Space’s shared runtime. That is the same session the
Cloud cabinet and your phone show, so a session started here can be continued
from any device signed in to the same Cloud account and Space. The Desktop
sends your own sign-in credential; it never creates or broadens a
credential of its own. - Signed in to a Company server, with sharing enabled. The mirror is
published to that Company server at the same workspace route, in the namespace
your connection is bound to. A phone or another computer signed in as you to
the same server can open the session and send the next instruction. See
Sharing local sessions with a Company server
below. - Signed in to a Company server, with sharing off. Nothing is published: the
session stays on this computer and reports Not shared: cross-device sharing
is off. This is the default for a new Company connection. - A local connection (not signed in to Cloud or a Company server). The mirror
is published to this Desktop’s own node, which is the address your phone
reaches on the local network.
An expired Cloud sign-in is renewed automatically and publishing continues. If
Cloud refuses the credential for good (the device was signed out or revoked),
the badge shows Sharing stopped and Desktop stops calling the Cloud; the
local session keeps running. Signing in again re-enables publishing.
A Company sign-in is never renewed silently by the mirror. When the Company
server rejects or expires it, the badge shows Sharing stopped and Desktop
stops publishing until you sign in to that server again — the local session keeps
running.
The Space’s namespace is derived from the Space, not typed by you, so the
Desktop never publishes into a namespace the Cloud did not give it. A Company
connection publishes only into the namespace that connection was set up with.
Working in the Company Harness
Select your Company connection and workspace in the header, then open
Harness. Desktop shows your interactive Company sessions and the
connected projects available to your account. Select a project, then use
Remote in the composer to choose a connected Desktop or the project’s
runner. Choosing a destination keeps the draft in the composer. Send the
instruction when you are ready. The first instruction is
queued when the session is created. You can reopen the same conversation in
the server browser and see its progress there.
The composer keeps image attachments on the left and model, reasoning and
Send or Stop on the right as the destination supports them. Press Enter to
send and Shift+Enter to add a line. While an instruction is being sent, the
composer waits for its receipt before sending another one.
Company Harness works with data synchronization turned off. Its project list,
sessions, and turns use your Company permissions. If Desktop loses its Company
connection, reconnect to open or control those sessions. When you open Harness
on a Desktop connected to Company, it starts with this computer’s private history,
models and folders. Company stays connected. Choose Remote in the composer
when you need Company execution. Links to existing Company conversations open the
linked session. Mockarty tools can read local data in the local
mode. To change Mockarty objects or use external MCP, select the Local
profile in the header.
Sharing local sessions with a Company server
Signing in to a Company server does not share your local work with it. That is a
separate decision, because a coding session carries the instruction you typed,
the branch, the summary of changed files and the token usage.
- Open Desktop → Local folders and find Cross-device sessions.
- Turn on Share local coding sessions with this Company server.
- Start or open a session. The badge switches to Shared: continue on another
device once the server has accepted the state.
The session itself keeps running only on this computer. Another device can open
it and queue the next instruction, and this computer executes it — the same rules
as a Cloud session: per-device cursors, one device holding the next turn at a
time, and an explicit review verdict for changes.
What travels: the instruction text, the model and branch, the session state, the
summary of the diff (paths and counts, not the file contents), the review verdict
and the token usage. What never travels: your provider API key, the contents of
your files, and the local paths. Your Company credential is used only for this
request and is never written into the shared state or the Desktop’s logs.
You can turn the switch off at any time. It takes effect immediately: no new
state is published and the Desktop stops polling that server for instructions.
Sessions already published stay readable on the server until they are removed
there.
A Desktop that stops checking in disappears from the Team Room executor list
within three minutes. Open saved conversations from the Room history.
The switch appears only when the Company licence includes coding sessions. If it
does not, the page says so; there is nothing to switch on.
Continuing from another device runs here
A turn another device queues is executed by the machine that owns the process,
not by the sender:
- The phone (or any attached device) sends the next instruction to the mirror.
- The owning Desktop runs the instruction in the same folder, subject to the
current project and connection permissions. If you created the chat on
the server or phone and chose this Company or Cloud Desktop to run it,
OpenCode 2.3 retains the conversation on that Desktop across turns and
restarts. Keep the original project and Git branch available. - Desktop publishes state, usage and the execution result. The server saves
the answer with the turn and makes the chat available for the next
instruction. - Desktop saves which local attempt belongs to the turn before sending the
instruction. If the engine’s acknowledgement is lost, Desktop keeps that
turn from running again automatically.
Stop stops the current attempt. Once the previous turn is settled, you can
send a follow-up to the same mirrored session.
The model and profile that produced the work (for example
deepseek/deepseek-flash, balanced) are stored in the mirror and shown on the
other device. They are descriptive: a second device displays them, it never
drives the local process with them.
The server keeps a mirror of each session under
/api/v1/namespaces/{namespace}/coding-sessions:
| Call | What it does |
|---|---|
POST /coding-sessions |
Publishes the session mirror and attaches the creating device as its owner. |
GET /coding-sessions |
Lists your sessions. Sessions bound to an autonomous mission appear when the installation has Agent work read access. |
GET /coding-sessions/{sessionId} |
Opens the session from any of your devices: instruction, access level, branch, last change set, review verdict and comments, usage, attached devices with their attach times, the turn log, the current turn lease and this device’s resume position. |
PUT /coding-sessions/{sessionId} |
Replaces the mirrored state. Only the owning device may do this; expectedRevision makes it a compare-and-set. |
POST /coding-sessions/{sessionId}/attach |
Attaches or heartbeats a device. The first attach time is preserved. |
PUT /coding-sessions/{sessionId}/cursor |
Moves this device’s resume position forward. A lower value changes nothing. |
POST /coding-sessions/{sessionId}/turns |
Sends the next instruction. Pass expectedTurnSeq and the positive expectedRevision from the session you just read. If the revision or mission link changes before the server accepts the request, it returns 409 turn_conflict without adding a turn. Read the session again before sending. |
PUT /coding-sessions/{sessionId}/turns/{seq}/child-activity |
The assigned Company Desktop reports current children during the turn lease. The preview is readable as turn.childActivity. Send deviceId, the turn’s exact operationId, an increasing revision and a children list. A preview may use running status. Repeating the same revision and payload returns the receipt. Once the lease or turn ends, an update is refused. |
POST /coding-sessions/{sessionId}/turns/{seq}/child-stop |
Queues an addressed Stop for the current child. Send operationId, childSessionId and taskPartId from the active turn view. The assignment and lease must still be current. Repeat requests return the same receipt while the parent turn is active. |
PUT /coding-sessions/{sessionId}/turns/{seq}/child-stop-executor |
For the live assigned Desktop connection. Send deviceId, attemptId and operationId to read claims for that attempt. Add result with the claimed child identity and a terminal state to acknowledge it. The active turn view reports the saved status. |
POST /coding-sessions/{sessionId}/turns/{seq}/complete |
Records status as completed or failed and releases the lease. With completionRole: "executor", only the current owner device can settle the assigned turn. For a completed turn the executor can include answer as UTF-8 text up to 64 KiB. Other devices see it in the turn history. For an ordinary session assigned to a Desktop, that executor can also send children, with one entry per child. Each entry has childSessionId, taskPartId, status (completed, failed, interrupted or unknown) and optional title and output. The receipt holds up to 64 entries, up to 4,000 UTF-8 bytes per result, and up to 24 KiB across child titles and results. A retry preserves the stored answer and child results. Without executor mode the sending device confirms its own turn. |
POST /coding-sessions/{sessionId}/handoff |
Moves ownership to another attached device of the same user. The released device may still read (and, with the owner access level, send the next instruction), but from then on only the new owner may publish state. |
An owning Desktop can include context in its PUT update. Other devices read it as session.context. It contains the timestamp and token counts from the latest measured model request. When Desktop confirms the model’s context limit, it also reports limitTokens. The Context control in the server Harness uses these values for the context indicator, cache details and request speed when available. Measurements depend on the model and Desktop version. An older Desktop may omit them.
During an active parent turn, a child card appears when the assigned Company Desktop reports it. The card shows the latest complete assistant passage made available by that child. It updates while the Desktop has the turn lease. After the turn ends, the card shows the recorded child result when one is available. A child without a confirmed outcome shows Unknown. The child’s Stop child button sends a request to the assigned Company Desktop. The card shows when the Desktop confirms the stop. The parent and other children keep running. If the Desktop cannot confirm the stop, the card shows that result.
Two rules make continuing safe:
- Exactly once. Every instruction carries a
clientTurnIdyou choose. A
resend after a timeout, or the same instruction sent from a second device,
returns the already-accepted turn withreplayed: trueand appends nothing.
A different instruction under the same id is refused with
idempotency_conflict. - One acting device per turn. Sending an instruction takes the turn lease.
While another device holds it, the send is refused with
turn_held_by_another_deviceand the response names the holder and its
expiry. The sender or the current executor can release it withcomplete.
If the lease expires and a new instruction is accepted, the previous queued
turn is markedfailed.
Manual runner protocol
An integration can assign a new manual session to a registered runner by
passing runner: {id, authority} to POST /coding-sessions. Use the authority
from the user’s active runner project selection and the same projectId in
the session. To queue the first instruction in the same request, also send
executorMode: "runner", accessLevel: "owner", initialTurnId and
instruction. Reuse the same IDs and body after a lost response. The
response includes openUrl for the server Harness and the current state
of the queued turn. You can send later instructions through the turns route.
The runner calls require write access to the workspace and the registered
runner secret in X-Coder-Secret.
In a connected workspace, open Coder harness, choose a project shared by your Desktop, and send an instruction. You can reopen a session to see its prompts and saved replies. The runner uses the provider configured on the execution host. Use Stop beside the active turn to withdraw it. The session stays open for a new instruction. If a runner has already started the turn, the screen shows Stopping… until the runner acknowledges the stop.
New sessions started on a Desktop with OpenCode 2.3 retain the model’s conversation on that Desktop between instructions and after a restart. Reopen the same session and send the next instruction. Keep the original project and Git branch selected. If its saved conversation is unavailable, the runner refuses the new turn. Sessions started by an older version may require a new session.
| Call | Body and result |
|---|---|
POST /coding-sessions/{sessionId}/turns/{seq}/stop |
Pass the active turn sequence in the path and deviceId in the body. The response contains the turn and whether this was the first request. stopRequested marks the stopped turn in the history. |
GET /coding-sessions/runner/projects |
Lists the current user’s selectable projects on connected runners in the workspace. |
POST /coding-sessions/runner/claim |
Pass runnerId and a new receiptId. The response contains the assigned turn, the selected project authority and the installation attestation. 204 means no eligible work. Reuse the same receipt after an uncertain response. Check the returned turn status before executing a replay. |
POST /coding-sessions/runner/status |
Pass runnerId and the original receiptId to check an assigned turn. An unknown receipt returns 204. This call leaves the work queue unchanged. |
POST /coding-sessions/runner/complete |
Pass runnerId, the assigned receiptId and status (completed or failed). For completed, the runner can send the answer as answer (UTF-8, up to 64 KiB). The session turn history includes this text when available. Retrying the same result returns the recorded turn. |
The runner can retrieve an instruction while the selected project permission
and runner registration remain valid. Reporting an existing result also
requires the original registration and receipt.
Desktop can reuse its registration after a restart when the enrolled host,
workspace, account and stored runner credential are unchanged. Explicitly
disconnecting the registration or rotating the runner secret creates a new
registration on the next connection. Receipts stay with the original one.
Starting a Git session on Coder Runner
In the server Coder harness, open Remote → Remote runner in the composer and choose a runner. The gear menu opens when the selection needs more information. Select the project and repository, enter its branch and send the first instruction. Reopen the gear to change these settings before you send. Use Use a specific commit when
you need to pin a revision or when the runner requires one. The workspace needs a
registered, persistent pull-mode Coder Runner with a supported OpenCode
package. The runner uses the model and repository credentials configured
on that machine. A personal runner is available only to its owner.
When Desktop is connected to Company, open Local in the same composer and
choose Remote runner. The list shows available Git runners with free coding slots in
the selected Company Space. Choose a runner to open its Git settings, then
send the first instruction when you are ready. If you already have a Local
conversation, choose Start a separate session to leave its draft on this
Desktop. When protected transfer is available, Move current session opens
its own review and runner selection. Cancel returns to your Local
conversation.
To coordinate in an open Team Room, choose it in the same settings before you
send. The list is available to members with Processing and Chat write access
in the selected Space. Enable Mockarty write tools for a turn to let the agent
join the Room, post or resolve a message. Once it has joined, it can also read
the Room in Plan mode. Moving the conversation to another runner keeps its Room
participant.
Room selection works on a Community Server using the default SQLite setup.
For a new PostgreSQL installation, set AUTH_POLICY_STORE=application on every
admin node before the first start. In Docker Compose, add
AUTH_POLICY_STORE: application under services.mockarty.environment. In Helm,
use --set-string admin.env.AUTH_POLICY_STORE=application when installing.
If Team Rooms are unavailable on an existing server, contact your administrator.
To continue without a previously selected room, choose No Team Room.
A Coder Runner registration serves one Space. Users in that Space can run
several sessions at once when the runner has free coding slots. On a shared
host, keep the default Docker sandbox and use a separate registration, runner
ID and working directory for each Space. Reserve --sandbox local for a
trusted machine where the runner may use that machine’s files and credentials.
In Mockarty Mobile, sign in to the server and open Coder → New session →
Launch from Git. The Coder tab is available in Community. Autonomous
missions appear separately when the server has the required licence.
The API paths below are relative to /api/v1/namespaces/{namespace}.
| Call | Body and result |
|---|---|
GET /coding-sessions/runner/git-targets |
Returns projects with their configured HTTPS repositories and available runners with names and IDs. freeCodingSlots is present when a runner reports a count. Runners reporting zero free places are omitted. When branchTip is true, the runner can start from the latest commit on the chosen branch. A runner without a configured name is shown by its ID. Workspace write access is required. |
POST /coding-sessions |
Send executorMode: "server-git", accessLevel: "owner", deviceId, sessionId, projectId, branch, initialTurnId, instruction and gitRunner: {id, repository}. Include gitRunner.headCommit to pin a specific revision or when the runner does not advertise branchTip. The session ID starts with git-session- followed by 64 lowercase hexadecimal characters. Use a fresh ID-safe token no longer than 64 characters for initialTurnId. |
GET /coding-sessions/rooms?executorMode=server-git |
Lists open Team Rooms available for a Git session in the selected Space. |
POST /coding-sessions/rooms |
Send the same Git launch fields and initialRoom: {roomId, objective}. Use a fresh initialTurnId beginning with company-room-create-v1. and no longer than 64 characters. The objective is optional. |
gitLaunch.status = "accepted" confirms that the server has saved the launch
and first instruction. The runner prepares the selected revision before
execution begins. If the create response is lost, retry the same body with
the same IDs. A changed request with those IDs is a conflict. Follow the
returned openUrl to watch the session.
While the runner prepares the session, choose Cancel launch in the
conversation. In the API, send
POST /coding-sessions/{sessionId}/git-launch/cancel. A successful request
or an exact retry returns {"cancelled":true}. If the runner has already
started, refresh the session and use Stop on the current turn.
Send the next instruction in the open conversation. In the API,
GET /coding-sessions/{sessionId}/hosted reports runner readiness and the
observed lease generation. Use POST on the same path with
commandId, prompt and leaseGeneration to send a turn. If the
runner cannot find the specified commit on the branch, the session shows
the reason before executing the instruction. If the runner reaches its time
limit with a confirmed question or permission request still open, it records
that as the reason for the stopped turn.
To move a live Git session, choose another runner from the execution menu
in the composer and confirm. Both runners must support live transfer and
the session’s turns and file operations must finish. The source exports
a fresh copy of the conversation and its clean Git revision. Transfer
progress stays with the session when you switch chats. Until the destination
accepts the copy, you can cancel and resume on the source runner.
If the runner goes offline, open Restore session in the browser and
choose a replacement. A copy is available after a verified checkpoint.
The new runner needs access to the same Git repository and must support
Git session recovery. If the server offers Restore last verified copy
after an unconfirmed turn, review any possible changes in the repository and
confirm the offered copy. The unconfirmed message stays in the conversation
without running again. Queued turns that never started can follow the session.
The original conversation keeps the same link. When the replacement is ready,
its name appears beside the Runner badge. If another device has the session
open, you can read the conversation. To send from this browser, close
the session on the other device and reopen it here.
If a stalled runner still appears online, ask its operator to stop or restart
the runner service, then check Restore session again. Recovery on a
replacement requires a verified copy already saved on the server.
To check recovery, call GET /coding-sessions/{sessionId}/git-recovery.
Send runnerId and the returned leaseGeneration in a POST to the
same path. Use liveMove: true for a live source when the status reports
liveMoveAvailable: true. When the status offers an unconfirmed turn,
confirm the last verified copy by sending its exact commandId as
skipUnconfirmedCommandId. An owner can cancel a pending attempt with
POST /coding-sessions/{sessionId}/git-recovery/{requestKey}/cancel.
For a new attempt after cancellation, add retryOf with the cancelled
request key.
Moving a session to another device
POST /coding-sessions/{sessionId}/handoff with
{"deviceId": "<asking device>", "toDeviceId": "<new owner>", "reason": "…"}
moves ownership durably. Both devices must already have attached (call
GET/attach first), otherwise the call is refused: a device id that never
opened the session cannot become its owner. The response contains the handoff
record and the full resumed state as the new owner sees it.
What the move does not carry: the old device’s engine process, its pending
permission approvals, its turn lease and its provider credentials. After the
move the old device can still read the session, but PUT is refused with
session_access_denied. If the old device still held an unexpired turn, the
handoff is refused with turn_held_by_another_device; once that lease expires,
the next handoff closes the unfinished instruction as failed and records its
sequence as abandonedTurnSeq — the new owner can never run it by accident.
GET /coding-sessions/{sessionId} lists the handoff history under handoffs.
Device-bound sessions (accessLevel: "device") and finished sessions cannot be
handed off (session_access_denied / session_terminal).
A handoff can also record which machine the work moves to. Pass execution
with {"nodeId": "…", "hostIncarnation": "…", "workspaceRoot": "/abs/path", "runtimeFingerprint": "…"}. The binding is stored with the handoff record and
returned with the session as execution, so the receiving machine can compare it
with its own runtime before it starts work. The binding must be complete — all
four fields, with an absolute workspace path — otherwise the request is refused
with invalid_request. When the new runtimeFingerprint differs from the one
that produced the state, the handoff is refused with
execution_runtime_incompatible unless the request also sets
"runtimeChange": true: a plan produced by one engine may not replay on another,
so that has to be a decision rather than a default. A handoff sent without
execution keeps the binding already recorded — it never erases the machine
history.
Identifiers are limited to 512 UTF-8 bytes and the workspace path to 4096 bytes, including surrounding whitespace. Control characters are refused.
The access level is decided when the session is published: owner allows every
device of the session’s user (the cross-device default), device keeps the
session on the machine that created it. A session owned by another user answers
404 session_not_found — the same answer as a session that does not exist.
The mirror is a projection: a diff is summarised (paths and counts), not copied
as a patch, and the engine’s token usage is shown exactly as the owning device
reported it. Desktop’s Local workspace screen is not needed on the second
device; the calls above are the whole contract.
If a workspace is deleted or recreated while a session update is in progress, the old request is refused with 503 session_resume_unavailable. Reopen the current workspace and reread the session before deciding whether another instruction is needed. Do not blindly resubmit model work after an uncertain execution outcome.
Review notifications are queued for devices in the current workspace lifetime. A delayed observation from an erased workspace cannot send its previous session details to a newly created workspace with the same name. An enqueue failure leaves the whole addressed batch unqueued; a later current observation can retry it without duplicating notifications.
Device registration, device activity updates, resume-position updates, mobile
commands and
notification acknowledgements use the current workspace. A request from a
workspace that has since been deleted or recreated can return
503 continuity_unavailable. Reopen the current workspace and read the relevant
session or mission before continuing.
For mobile commands sent to
POST /api/v1/namespaces/{namespace}/continuity/commands, a
500 command_failed response can report that the command may have completed but
its receipt could not be saved. Read the current session or mission state before deciding
what to do next. Do not resend the command automatically or choose a new
clientCommandId to force another execution.
When a coding turn is temporarily held or another turn is in progress, resolve
that condition first. You can then retry the same payload with the original
clientCommandId. The temporary refusal does not finalize the command.
While a session is moving, 409 transfer_in_progress tells you to wait for
the move to settle. Read the session again to find its current executor.
For a new session.instruction command, pass expectedRevision from the
session read. When 409 turn_conflict confirms that the command was refused,
read the session again and review its current executor. If you still want to
send the instruction, use the new revision and a new command ID. For an
unconfirmed response, preserve the original command ID and payload and look
for its receipt first.
A 202 response with pending:true means the outcome is not yet confirmed.
Read the session or mission state; retain the original clientCommandId.
Repeated polling does not start the command again.
When starting a new coding session from the phone, the initial instruction is
queued with the session itself. A connected, consented Desktop with access to
the project can accept that work. An already running Desktop session is not
automatically taken over by another Desktop. The phone can read the executor’s
completion and send the next instruction. Keep the original request identity
when reconnecting; do not send the initial instruction a second time.
In Mockarty Mobile, select the same Workspace as the connected Desktop in
Settings. In the Android session form, select a folder and choose a connected
Desktop under Run on to reserve the first instruction for that installation.
Start session stays at the bottom of the form while you type. Use Cancel
to discard the draft.
While it is offline, the session shows Waiting for Desktop. It runs when
that Desktop connects with access to the selected folder. To let any eligible
Desktop claim the work, choose Any Desktop with this folder. In the
server browser, Run on shows your Desktop installations alongside the
project runner. The device that submitted a waiting request can cancel it.
API clients use executorMode: "desktop" with targetDeviceId from
the current workspace’s device directory. The create receipt keeps the
original selection in session.initialTargetDeviceId.
Requesting a move of a runner-backed session
The calls below apply to regular runner-backed sessions. For a protected
Native publication, Company accepts return requests only from the current
owner with proof from the original Desktop installation. It waits for
accepted work to end before freezing the session on the runner. An expired
copy requires a fresh transfer attempt. The runner gives up the session only
after the original Desktop confirms its import.
For a protected Native session, the session list and the conversation show the
runner once it accepts the session. They show Desktop again after the return is
confirmed.
In Harness, open the session and choose Continue on…. The runner panel shows available destinations and the status of any pending move. If the status cannot be read, it displays the error and clears the actions.
Use the session ID in /api/v1/coder/sessions/{id}/transfer. The status
request requires coding read access in the session’s workspace. Creating
or cancelling a request requires coding write access.
| Call | What it does |
|---|---|
GET /api/v1/coder/sessions/{id}/transfer |
Shows the latest transfer receipt, pending request and available runner targets. When durable is true, receipts survive a server restart. |
POST /api/v1/coder/sessions/{id}/transfer/requests |
Records a request to move the session. Send {"direction":"local_to_runner","runnerId":"<runner id>"} or {"direction":"runner_to_local"}. The same in-flight request returns the existing request with replayed: true. |
POST /api/v1/coder/sessions/{id}/transfer/requests/{requestKey}/cancel |
Cancels a request before the receiving side admits it. Use the requestKey returned by the request or status call. |
POST /api/v1/coder/sessions/{id}/continue/commands/{commandId}/stop |
Stops one turn on the runner. Take commandId and leaseGeneration from the same continueCommands entry in transfer status. Send {"leaseGeneration":2} with the actual value. A 202 means the runner still needs to confirm the outcome. With 200, the turn has already settled. |
A request identifies the move for the session owner. The selected runner registration receives the bundle and confirms admission. The status progresses from requested to exported to admitted; a refused or withdrawn request ends as cancelled. If the runner is re-registered with a new credential before transfer, cancel the old request and select it again. Read the status to see the receipt. The archive becomes available to the receiving registration when export is confirmed. If storage fails before confirmation, the transfer stays requested so the source can retry it.
Each runner reads the transfers it can service in its workspace. Transfers assigned to another runner cannot fill its polling page.
A conversation started with a Company Room stays on the Desktop chosen at launch. The Room’s permissions stay with that Desktop, so transfer actions are unavailable in that conversation.
For a session tied to a Desktop folder, the original Desktop must be connected and still have the folder access used to start that session. A paused or changed folder selection is refused before the transfer is queued.
A Coder Runner with --max-hosted-sessions=0 and a one-shot --once runner cannot receive a transferred session. Other coding work follows the usual runner rules.
After the new environment confirms the transfer, the previous runner closes the old engine and releases its slot. After a restart, the previous runner can finish removing its saved transfer copy. It keeps the checkout if it cannot confirm the old engine stopped. It also removes the temporary checkout when it can verify that the checkout, Git references and local files are unchanged. A checkout with changes or ignored files is retained.
When a registered OpenCode runner accepts a transfer, the connected server saves an encrypted copy of the conversation. A completed turn with a clean Git checkout updates that copy together with its result. While a new turn is running, or after a turn whose state could not be saved, the earlier copy is not considered current.
The next turn uses the destination runner’s configured model unless you explicitly select another available model for the turn. The conversation keeps its history, including turns from the original model.
If the runner goes offline and the server has a current copy, the session owner can choose Restore on… in Continue on…. Choose an available runner that supports recovery. The new runner needs access to the same repository and saved Git commit. Turns still in the queue move when the new runner accepts the session. If a turn started and there is no later verified copy, recovery is unavailable because the turn may already have made changes.
With the API, read recoveryAvailable and currentGeneration from the transfer status. Choose an enabled target with recoverySupported and send {"direction":"runner_to_runner","runnerId":"<runner id>","leaseGeneration":2} to the transfer requests endpoint. Use the actual generation shown in the status. After acceptance, the new generation and executor appear in the status. You can cancel before acceptance.
The source Desktop waits for its current work, including subagent instructions, to settle and pauses input during the move. After a restart, Desktop can finish a requested export for a linked OpenCode 2.3 session. Keep the original profile, folder and branch available. Desktop preserves the conversation without resending its last instruction. Cancelling that request lets you continue on Desktop.
The outbound target list distinguishes portable OpenCode runners, offline registrations, and runners whose last report shows no free slot. Choose an available runner or wait for capacity.
After a cancellation or refusal, choose the same direction and device to start another attempt. With the API, pass the cancelled request key in retryOf. Resending that request returns the same attempt. Both transfer hosts must support attempt keys to retry.
Before returning a session, wait for the queued and running turns to finish or stop them on the runner. While the move is in progress, the runner refuses new prompts and the form keeps your draft. Cancel the request to resume on the runner, or wait for Desktop to receive the session. The API returns continue_turns_pending when turns block a return and transfer_in_progress when a return blocks a new turn.
Desktop waits for the server to confirm the return before accepting another prompt. If Desktop restarts after importing the session, it can recover that confirmation for the same return.
In the browser, open the execution menu in the composer, choose an
available destination and confirm Move session. Closing the
confirmation keeps the session on its current executor. The list shows free
coding slots when the runner reports them; a busy runner cannot be selected.
For a session linked to a coder record, you can move between two connected,
compatible OpenCode runners. Wait for the current message and any workspace
operations to finish. Commit workspace changes and make the commit available
to the destination. Open the execution menu, select a different runner and
confirm Move session. The source exports a fresh copy, and the destination
takes ownership when it accepts that copy. Cancel before acceptance to keep
working on the source. If the source disconnects before exporting, cancel the
move and check whether a verified recovery copy is available.
Through the API, read liveMoveAvailable, currentGeneration, and the enabled
targets with liveMoveSupported. Submit
{"direction":"runner_to_runner_live","runnerId":"<target runner>","leaseGeneration":1}
using the generation you read. The request reports direction: runner_to_runner
and sourceSide: runner. Check the status until admission or cancellation.
A progress bar above the message field shows the last confirmed transfer stage.
You can keep working in another session and return to check the move. The moving
session keeps its draft and pauses sending until the server confirms the result.
Use Cancel request while the move is still in progress. If the connection
drops, the chat waits to verify the move once the connection returns.
Before moving, commit the Git changes and make the commit available to the destination. When bringing a session back, fetch the branch on Desktop if needed. The transfer carries the active branch, its commit and the conversation. It is refused if the Git checkout has uncommitted changes or changes during export. Changed checkouts remain on the runner after it stops the engine.
After a restart, a persistent OpenCode 2.3 runner in pull mode can reopen the conversation from its last verified snapshot and resume queued turns. Keep the runner’s data directory, original registration, Git branch and commit. The server must still assign the conversation to that runner. The restored conversation remains available for return to Desktop. A snapshot is saved on arrival and after completed turns with a clean checkout. If the process stops during a turn, the previous snapshot is unavailable and the interrupted turn is never sent again automatically. A confirmed return removes the runner’s copy of the snapshot.
Once the runner saves a finished reply, it can deliver that reply after a restart. This requires keeping the runner’s data directory and registration. When the connection returns, the reply appears once in the session history.
Submitting a Desktop mission
A connected server accepts a queued Desktop mission when the workspace
has autonomous testing and the caller can create missions there. The
POST /api/v1/autotester/missions/desktop request carries a goal and a stable
originRef for that local task. A successful response returns HTTP 202 with
missionId. Keep the same originRef when retrying the same task so the server
can return the existing admission.
Let a server mission use a local folder
A coder mission can target a local folder the way it targets a server coder
runner. The mission names the Desktop project id (the folder’s entry in the
Local workspace list); it never sends a path. The Desktop leases that job over
the same coder job channel and runs it in the session. The work stays in your
folder — the server does not receive the code, and the mission accepts the
sub-task from the session’s own result rather than testing a server checkout.
If the session asks a question or requests a permission, the person answers it
in Local workspace — the mission waits for that answer instead of inventing
one. A session that stays unanswered reaches its time limit and is cancelled.
Prerequisites on the Desktop: the runner console must be connected to the admin
(admin URL, token and namespace) and the coding host must have an enrolled
principal. When those are missing, server orchestration stays off and the
screen still works locally. Once the connection and coding host enrolment
are configured, Desktop starts the coding worker without a restart.
The embedded worker verifies the signatures of its own Desktop server.
For a separate server, copy its Ed25519 public key from the server
operator. When configuring the running Desktop through the local
Runner Console API POST /api/config, include this base64 value in
coderAdminPublicKey with the admin URL, selected namespace, and that
server’s integration token. Use HTTPS, or an IP-literal loopback URL
for local development. Updating the server address requires a token for
the new server and clears the previous pin unless a replacement is supplied.
The embedded Console starts with its own Desktop server connection on
relaunch. Setting a separate Console endpoint is independent of signing
in to Company or Cloud and does not change the selected Desktop profile.
When the Console uses the same HTTPS address and workspace as the active Company profile, it also uses the TLS key already trusted by that profile. A different Console address uses the system trust store. Switching or retiring that Company connection stops the worker bound to it.
Manual verification recipe
Use this to prove, on a development machine, that an instruction reaches the
local OpenCode backend and that a diff comes back. It uses the loopback runner
console API the screen itself uses.
- Start the admin node and open Desktop. The embedded runner console prints its
loopback URL in the Desktop log; it is also exported as
MOCKARTY_DESKTOP_GRID_URL. - Enrol the coding host (runner console: open Coding host, press Start) and
install the pinned backend. - Add a test folder in Local workspace and copy its project id from the
browser devtools (data-project-idon the folder card). - Read the enrolled principal:
curl -s "$MOCKARTY_DESKTOP_GRID_URL/api/coding-host" | jq .session.principalId
- Start a session (the root must be the folder you added):
curl -s -X POST "$MOCKARTY_DESKTOP_GRID_URL/api/coding-sessions" \
-H 'Content-Type: application/json' \
-d '{"projectId":"<project id>","root":"/absolute/path/to/folder",
"owner":"<principal>","provider":"deepseek","model":"deepseek-flash"}'
- Stream the session in a second terminal:
curl -N "$MOCKARTY_DESKTOP_GRID_URL/api/coding-sessions/<sessionId>/events?owner=<principal>"
- Send the instruction:
curl -s -X POST "$MOCKARTY_DESKTOP_GRID_URL/api/coding-sessions/<sessionId>/prompt" \
-H 'Content-Type: application/json' \
-d '{"owner":"<principal>","prompt":"Add a line hello to README.md"}'
- The stream must show
assistant.messageand/ortool.callevents, then
session.idle. Read the change set:
curl -s "$MOCKARTY_DESKTOP_GRID_URL/api/coding-sessions/<sessionId>/diff?owner=<principal>" | jq
The answer must list README.md with a patch containing +hello. A session
that could not reach OpenCode reports a typed error instead of an empty diff.
- Commit and confirm the commit id:
curl -s -X POST "$MOCKARTY_DESKTOP_GRID_URL/api/coding-sessions/<sessionId>/commit" \
-H 'Content-Type: application/json' \
-d '{"owner":"<principal>","message":"Add hello"}'
- Read the review view — per-file hunks, inline comments, the verdict and what
publishing would do:
curl -s "$MOCKARTY_DESKTOP_GRID_URL/api/coding-sessions/<sessionId>/review?owner=<principal>" | jq
- Add an inline comment and a verdict, then read the comments back:
curl -s -X POST "$MOCKARTY_DESKTOP_GRID_URL/api/coding-sessions/<sessionId>/comments" \
-H 'Content-Type: application/json' \
-d '{"owner":"<principal>","file":"README.md","side":"new","line":2,"body":"Clarify this line"}'
curl -s -X POST "$MOCKARTY_DESKTOP_GRID_URL/api/coding-sessions/<sessionId>/review" \
-H 'Content-Type: application/json' \
-d '{"owner":"<principal>","decision":"reject","note":"Needs a clarification"}'
- Publish and read the typed outcome:
curl -s "$MOCKARTY_DESKTOP_GRID_URL/api/coding-sessions/<sessionId>/publish?owner=<principal>" | jq
curl -s -X POST "$MOCKARTY_DESKTOP_GRID_URL/api/coding-sessions/<sessionId>/publish" \
-H 'Content-Type: application/json' \
-d '{"owner":"<principal>","vcs":"gitlab","tokenEnv":"GITLAB_TOKEN"}'
The publish answer has mode merge_request with an mrUrl when a forge is
configured, or mode push_only with code publish_unavailable and an empty
mrUrl when it is not. A later commit makes an earlier verdict report
"stale": true in the review view.
- Confirm that the Desktop published the session to the server mirror. The
same node serves both surfaces, so the admin API lists it under the local
user’s sessions (sign in aslocalto obtain a session token):
curl -s "http://127.0.0.1:5780/api/v1/namespaces/sandbox/coding-sessions" \
-H 'Authorization: Bearer <user session token>' | jq '.sessions[] | {sessionId,state,model,profile,revision}'
The session id is the local one from step 5. state stays active after a
local attempt ends (the work can continue), and model/profile are the engine
identity the Desktop ran. The Local workspace header shows the matching Shared
badge. If the badge says Not shared yet — retrying, the node refused or could
not be reached; the session is still running and the publish is retried.
Troubleshooting
- The local session service is not available — the installed Desktop is
older than this screen, or the embedded runner console did not start. Restart
Desktop and check the runner console. - Provider and model are required — set the variables above or enter a
provider/model when starting. - Local work is not enabled — enrol the coding host and start intake in the
runner console. - The local OpenCode backend refused the session — the installed backend is
not the pinned interactive version. Reinstall it from the runner console. - No changes to commit — either the session changed nothing, or its changes
are already committed. Review changes shows the current state.
Local OpenCode plugin states
Use mockarty-cli plugin create my-plugin --template opencode-plugin to scaffold a local OpenCode 2.x plugin. The sample registers a read-only tool that returns a readiness string. After changing the module, update its digest in the manifest before packing it. Review the exact package in the native installation flow.
The toolkit reports the current backend and exact installed versions. A plugin being installed or enabled does not confirm that a session loaded it. Select only an installed version that the current local backend lists as selectable; the session still verifies its exact files and load acknowledgement before sending a prompt. Mission and server plugin selection are not offered by this local workflow. Server and SaaS customer installation of new JavaScript packages remains unavailable; those packages require operator provisioning.
For an installed local package, native review supports enabling, disabling and removal at its exact version and digest. The native dialog shows the action, package, version, SHA-256 and the Space on this Desktop. Confirmation is a separate human decision. A package used by an active session cannot be changed; the action does not stop sessions automatically. A confirmed disable or removal clears that version from the selection for a new session. Version replacement is not available in this flow. If an OpenCode update makes the installed version incompatible, the panel explains which package needs updating. You can disable or remove the old package and separately review a compatible archive.
A generic installer preview can remain blocked for privileged code while a separate native review is eligible. Read the native action’s eligibility and reason; a preview is never approval. If a native operation’s result is uncertain, read its recorded state instead of sending it again. After restarting the app, the current operator’s backend and namespace can recover those readback facts from the saved operation journal. Unscoped legacy records and another operator’s requests are not recovered as new actions. An absent package alone does not prove that a particular removal succeeded.
In the native Desktop app, open Harness in the Local profile, then open Plugins next to New session. If you see Prepare Local executor, select it to make installed plugins available without opening a session or calling the model. Review and enable the package, then select Use in the next local session. The installation confirmation must belong to your current local account and workspace on this Desktop. The chosen project can disable a package. The browser view of Local Development can read the catalogue. Selecting and changing a plugin require the native Desktop window and Local profile.
For your own OpenCode ZIP, select Import OpenCode ZIP in this panel. Desktop reads the chosen archive and shows its exact version, SHA-256, licence and signature status before installation. Confirm only packages you trust. Existing signature and runtime policies apply.
Search the catalogue by package name, ID or version. Use Review to inspect a package. For collections and other Mockarty packages, Open Desktop Plugins leads to the Control Panel, where an administrator can review installation. An OpenCode plugin still requires separate confirmation in the native Desktop window.
A resumed session keeps its exact plugin versions. If the current account, workspace, or project policy no longer admits a selected package, the session refuses to send a new prompt. Its history remains available.
If an install or lifecycle operation has an unknown outcome, read its existing status. A matching package state alone does not confirm that the original operation finished. Keep the operation unresolved if completion cannot be verified; do not resend it automatically.
An answer accepted into the local queue is shown as waiting for confirmation. It is marked as received only after the engine confirms delivery. If delivery cannot be confirmed, the selected answer stays locked: use Reconnect to read its recorded state. Reconnect does not send the answer again. Switching namespace or connection closes the old question view. Permission requests still require an explicit human decision.
Empty or invalid answers remain editable and are checked before sending. Text
answers accept up to 4,000 characters. A question that requires an entity picker
cannot be answered from this panel; the panel does not replace it with free text.
An unconfirmed delivery remains locked even if you edit the displayed text.
If Mockarty can verify a saved session and its project, an unresolved answer remains visible with its recorded reference. This historical record does not enable reply or permission controls.
Control Panel navigation
Selecting a section updates its link, so refreshing the page reopens that section. Switching settings sections does not add extra Back entries. Existing direct links such as the sync shortcut remain supported.
The Desktop Control Panel groups its sections into Connection and access, Workspaces, Capabilities, and Maintenance. Local workspace is under Workspaces. AI and models and Guard are under Capabilities. Local administrators can open Guard to review data categories, toggle rules, add a custom rule and test masking on sample text. The Guard button in a local session links to the same panel. This setting applies to model requests sent directly from this Desktop, including other chats. When model requests go through a connected server, its administrator manages that server’s policy.
Open Desktop from the sidebar. In Workspaces, use Callbacks and Git Sync for the selected space. In Capabilities, open Agent Skills & Tools. In Maintenance, use Cleanup Policy and Recycle Bin, including its retention settings. Appearance and your other personal preferences are in the profile menu under Preferences.
On a standalone Local profile, open Desktop → Workspaces → Spaces to close a Space. Choose Close Space next to its name and confirm. If it was selected, Desktop switches to Sandbox. Sandbox cannot be closed.
To bring the Space back, choose Restore next to its name under Closed Spaces. You can restore it while it remains in the Recycle Bin. If your active Space limit is full, close another Space before restoring. The current Space stays selected when you restore one.
Links to Control Panel sections respect the sections available in your current Desktop profile. A link does not open a hidden section.
The Control Panel module indicators refresh when Desktop receives updated feature access. Reloading the page is not required to reflect the received update.
Unlink a local folder
Removing a folder from Local workspace unlinks its saved entry; the folder and files remain on disk. After successful removal it is no longer the selected project. Cancelling or failing the operation keeps the current selection.
The latest folder-list refresh controls both the displayed folders and the loading indicator. A delayed list response or error from an earlier screen cannot replace the current list.
The selected-folder label follows the current Desktop connection. When that connection reports no selected folder, the previous label is cleared. Events from a connection or screen you have left do not replace the current label.
License status belongs to the current Control Panel screen. A delayed status response from an earlier refresh or a screen you have left does not replace the current result. If the current status cannot be read, Desktop shows that it is unavailable.
The machine-confirmation request code is shown only while the current status reports that request as pending. When the request is no longer pending, or its state is unavailable, the previous code is cleared and its confirmation action is hidden. Text you have typed in the confirmation field is kept.
When the Cloud task panel reports that a stop was accepted but its outcome is unknown, use Refresh to read the existing task. A running update does not confirm whether that stop took effect, so Cancel remains unavailable until a final task result is verified.
Closing and reopening the task panel does not make an uncertain Stop safe to repeat. Desktop keeps that stop attempt and only rereads the same task on a repeated request. A final task result can settle the panel; a running task or a missing result cannot prove whether the earlier stop took effect.
Recorded result previews
Select a recorded result in the Coder workspace panel. Text, JSON, Markdown and HTML are shown as source; images have an image preview. Word and PowerPoint files can show a bounded text excerpt. Formatting, images and notes are not reproduced, and slide text may appear in a different order. If the file cannot be safely previewed, use Download original.
PDF files are download-only in the isolated workspace viewer. Download the original to open it in a suitable application. The preview does not enable document scripts or turn an artifact into an interactive website. A preview is a projection: the recorded original file stays unchanged.
Local session checklist
When OpenCode reports a checklist, Desktop shows it separately from the conversation. Admitted child sessions retain their own lists. A complete new version replaces the previous one; an empty list clears that session’s steps. The last saved version is restored when you reopen the session. A completed step does not replace result verification or your approval. An absent checklist is not treated as zero progress.
Server model for local coding
On a Company connection, choose your space from the header before opening AI and models. Desktop confirms your membership and saves the choice. Object sync and session sharing keep their current settings. If either already targets a different space, review those settings before switching.
Open Desktop Settings → AI and models while the Company or Cloud connection is active. In Model for work on this Desktop, select Server / Cloud profile, choose a model from the current workspace and save. Your administrator manages the available models. Provider credentials stay on the server.
An authorized interactive session can use this catalogue on self-hosted Community. Autonomous missions have a separate entitlement.
The choice applies to new turns sent to this Desktop from the connected workspace. With a Company connection, it also applies to new local Harness conversations opened on this Desktop. The composer shows the Company model, and your code still runs on this Desktop. Choose This computer / own provider to use the Desktop provider settings for new work. A local conversation started with a Company model keeps its model when you reopen or fork it. If access has changed or the saved model has been removed, Desktop keeps your draft and asks you to review the connection or start a new conversation with an available model.
To send work to a linked Git worktree on this Desktop, register both the worktree folder and its main repository under Desktop → Local folders. The conversation keeps that repository binding when you send another message.
Switching profiles in Desktop cancels pending model catalogue requests. In Company mode, changing the selected workspace or signing out also interrupts an in-flight model response. If the server revokes your coding access while a response is pending, it cancels the request even if the model is still preparing its reply. Select a model available in the current workspace before sending another instruction.
Use Auto to keep the default reasoning setting. An explicit effort level requires support from the selected provider and server. If the server needs an update, choose Auto or ask your administrator to update it before starting a session.
The Guard indicator shows the server configuration: Off does not mask traffic; Ghost observes traffic; Enforce applies the configured masking rules and restores placeholders in replies. Enable and configure Guard rules before relying on masking. An interrupted model response is not automatically retried. Review the outcome before starting another billable request.
Sharing consent applies to the selected Company connection, server identity and signed-in user. Changing the account or server identity requires enabling sharing again. After upgrading from an older saved consent, review and enable the switch again; ordinary sign-in renewal for the same account does not change the consent. To revoke sharing, open the Company connection where you enabled it and turn off the switch.
For a new Company connection, select an available Company space in the header before enabling session sharing. Desktop checks that space with the Company server and shows the destination next to the switch. The first approval binds that space to this Desktop connection without enabling data synchronization. Close and reopen Desktop when the restart notice appears. Disabling sharing takes effect immediately; an instruction retained from an earlier approval does not gain permission from a new approval after restart.
To start on the connected Desktop, first add the folder in Desktop → Local folders. In the Harness composer, open the Local placement menu and choose a machine under Connected Desktop, then choose its project. If a local conversation is open, confirm the switch to a separate remote session. Your local conversation and its draft stay on this Desktop. Select a Team Room when the session should participate in that Room. Your Company account receives the project name and identifier. Folder paths stay on the Desktop. Refresh the project list after adding or removing folders.
If publishing is unavailable, follow the message beside the switch. Desktop distinguishes a connection whose permissions could not be verified, an account without publishing access, and a Company space where coding access was not confirmed.