Agents
Merging worker changes
A change passes through two merges on its way into your project. A commander merges each worker's changes into its own copy of the project. You then merge the commander's finished task into your project from the Control chat.
The path of a change
When a deck's project folder is a Git repository, workers and commanders don't edit it directly. Each one works in its own copy of the project, and a change moves toward your project in steps.
A worker changes files in its own copy of the project.
The worker's commander reads the changes and merges them into the commander's own copy. They land there as uncommitted changes.
When the commander finishes its task, the Control chat shows a message with the task's summary, its files, and a Merge button.
You click Merge. Control Deck adds the task to the branch your project folder is on, as one commit.
Until step 4, the task is not on your branch. You can read the changes, run them, open a pull request instead, or discard them.
This path needs a repository with at least one commit and no submodules. For other project folders, see Commander copies and A project folder that Git doesn't track.
Worker copies
A worker copy is a separate folder that holds your project for one worker. It is a Git worktree of your repository. Workers can't overwrite each other's files or yours.
When a worker gets a copy
| Situation | Where the worker works |
|---|---|
| The commander works in its own copy. | In a worker copy, always. The copy is made from the commander's copy, and the result goes back to the commander's copy. |
| The commander works in the project folder, and the folder is a Git repository. | In a worker copy made from the project folder, if Isolated worker workspaces is on and the Isolate switch for the worker's provider is on. A worker on an agent you added gets a copy whenever Isolated worker workspaces is on. Otherwise the worker edits the project folder directly. |
| The project folder is not a Git repository. | In the project folder. While Isolated worker workspaces is on, one worker that changes files works in the folder at a time, and the others wait as queued. |
Both switches are in Settings > Worker Routing, in the Worker isolation panel. They are on by default. See Worker routing.
Where copies are stored
Copies are stored outside your project folder, in the w folder of the Control Deck data folder: %AppData%\Ctrl Deck\w. Each copy has its own folder there. Commander copies are stored in the same place.
Every copy needs at least 1 GB of free space on the drive that holds this folder. With less free space, a worker fails to start. A commander with too little space works in the project folder.
What a new copy holds
A new copy starts from the files that Git tracks. Control Deck then adds what Git leaves out and a build needs:
- Each
node_modulesfolder that Git ignores is linked into the copy: the one in the top folder of the project, and the one beside each trackedpackage.jsonfile. A link uses no disk space. - The
.envand.env.*files are copied, from the top folder and from folders that hold tracked files. - If the deck has an approved worker setup command, it runs in the copy. See Worker setup command.
None of these steps stops a copy from being made.
To choose which ignored files are copied, add a .worktreeinclude file to the top folder of the repository. It uses the syntax of a .gitignore file, and its patterns replace the .env rule. A file is copied only if Git ignores it, doesn't track it, it's a regular file (not a link), it's outside node_modules, and it's 5 MB or smaller. A file that the copy has already is never overwritten.
A linked node_modules folder is your project's real folder. A package install that runs in a copy changes that folder for the project and for every other copy.
Copies and the worker limit
Each running worker that has its own copy takes one place in Workers running at once. A worker that starts at the limit waits as queued until a running one finishes. A commander's copy takes no place. See Set how many workers run.
Submodules
Changes that a worker makes inside a Git submodule are never merged. They stay in the worker's copy, and Control Deck keeps that copy. The copy shows in the Worker copies panel with the reason Submodule changes not merged and the submodule's name. The Control chat also shows a message that names the submodules and the copy's folder.
Commander copies
Each commander works in its own copy of the project. Two commanders on one project can't overwrite each other's files or yours. A commander's work stays in its copy until you merge it or open a pull request for it.
- A commander gets its copy when it starts a new conversation.
- A commander that has a copy always starts in it.
- If an archive cleanup removed the folder of a copy, Control Deck makes the copy again at the same path before the commander starts.
When a commander works in the project folder
A commander gets no copy, and works in the project folder itself, in these cases:
- Git doesn't track the project folder.
- The repository has no commits.
- The project has Git submodules.
- Control Deck couldn't make the copy.
- The commander is running already, or it continues a conversation that it started in the project folder. Control Deck never moves such a commander.
A commander in the project folder gets no Merge message. Changes that it merges from its workers land in the project folder as uncommitted changes, and you commit them yourself.
If Git doesn't track the folder, or the repository has no commits, the Control chat offers Start tracking. See A project folder that Git doesn't track.
How a commander merges worker changes
When a worker finishes with changes, its commander reads them and merges them. A worker merge makes no commit. The changes go into the commander's copy as uncommitted changes. If the commander works in the project folder, they go into the project folder as uncommitted changes.
Merge worker changes sets whether the commander asks you first. It's in Settings > Workspace, in the Autonomous panel, and it applies to every deck.
| Option | What the commander does |
|---|---|
| Ask me first (default) | Shows you what will change and waits for your yes before it merges. |
| Automatically | Merges without asking, then tells you what it merged. |
A commander can also change this setting when you ask it to.
Some results have nothing to merge:
- The worker changed no files.
- The worker's changes are merged already.
- The worker had no copy and edited the project directly.
Conflicts
If a worker's changes and the commander's copy changed the same part of a file, the merge stops with a conflict. For each file in conflict, the commander gets three versions: the file before either change, the version in the project, and the worker's version. The commander resolves each file in one of these ways:
- It writes the combined content of the file.
- It takes the project's version.
- It takes the worker's version.
- It deletes the file.
When every file is resolved, the commander finishes the merge. The commander can also drop the conflict. Then nothing is merged, and the worker's changes still wait to be merged.
While a conflict is open, Control Deck keeps the worker's copy. It shows in the Worker copies panel with the reason Conflict.
When workers close
A worker closes by itself after its commander has its result and its changes are merged, were discarded, or were none. A worker whose changes still wait, or whose merge has a conflict, stays in the crew card.
A finished task in the Control chat
When a commander that works in its own copy finishes a task with changes, the Control chat shows one message for that task. The message appears when the commander's turn ends and none of its workers is still running.
The message holds:
- The commander's name and finished., for example Alpha finished.
- The commander's summary of the task, in up to 12 points.
- The first 3 changed files, each with the lines added and removed, for example +12 -3. A binary file shows binary. If the task changed more files, one more row counts them, for example 4 more files.
- A status line, when there is something to report.
- The buttons for what you can do next.
A task can take several turns. If the commander does more work before you merge, Control Deck posts a new message for the task, and the summary points add up. The older message loses its buttons and shows Replaced by the newer message below.
Buttons
| Button | What it does | When it shows |
|---|---|---|
| Merge | Adds the task's changes to the branch your project folder is on, as one commit. See Merge a finished task. | While the task waits. |
| See changes | Opens the diff of the task. | Until the task's saved changes are removed. See Discard a task. |
| Run it | Asks the commander to start the project from its copy. See Run it. | While the task waits or is merged, if the commander's copy exists. |
| Open PR | Pushes the task to a new branch on GitHub and opens a pull request. See Pull requests. | While the task waits, if the project has a GitHub remote. |
| Discard | Takes the task's changes out of the commander's copy. See Discard a task. | While the task waits, while it has a clash, or after its pull request's branch is gone from GitHub. |
| Undo | Takes a merged task back out of the branch with a revert commit. See Undo a merge. | After the task is merged. |
| Open on GitHub | Opens the pull request, or the page where you finish it, in your default browser. | After Open PR. |
States
| State | Status line | Buttons |
|---|---|---|
| Waiting | None, or the result of your last click or of the checks. | Merge, See changes, Run it, Open PR, Discard |
| Checks running | Running the checks. | The same as waiting. |
| Merged | Merged into main. After checks: Checks passed. Merged into main. | Undo, See changes, Run it |
| Clash | These files changed in the project too: and the files, then Waiting for Alpha to fix them. | See changes, Discard |
| Pull request open | Pull request #7 open. Or Pushed, the branch, and Finish the pull request on GitHub. | See changes, Open on GitHub |
| Pull request branch gone | Pull request #7: its branch is gone from GitHub. | See changes, Open on GitHub, Discard |
| Pull request merged | Pull request #7 merged. | See changes, Open on GitHub |
| Discarded | Discarded. If the commander removed its own changes: Alpha took these changes back out. | None |
| Part of a newer task | Undone. These changes are now part of Alpha's newer task. | None |
If a click can't do its work, the task stays as it was and the status line says why. An error that Control Deck didn't expect starts with Something went wrong:. A button on a message that no longer applies answers That button does nothing any more.
Merge a finished task
To add a finished task to your project, click Merge on its message. The status line then reads Merged into and the branch, for example Merged into main.
What Merge does to your project and Git history
- It makes one commit on the branch your project folder is on. The commit's only parent is the latest commit of that branch. It is not a merge commit.
- The commit holds every change of the task.
- The commit message is the commander's summary. The first point is the first line, cut at a word boundary, up to 72 characters. Every point follows as a list when there are 2 or more points or the first line was shortened. A task with no summary gets the message
Merge commander task. - The commit uses the Git name and email of your project. If your project signs commits (
commit.gpgsign), the commit is signed. If a passphrase prompt shows, answer it. - The pre-commit, commit-msg, and other commit hooks don't run. Git's reference-transaction and post-index-change hooks do.
- Nothing is pushed.
- Your uncommitted edits stay as they are. Staged edits stay staged, and unstaged edits stay unstaged. If you edited a file that the task also changes, in other lines, the file holds both after the merge.
- After the merge, the commander's copy takes in the new state of your branch.
When Merge can't run
If Merge can't run, nothing is written, and the status line gives one of these reasons.
| Status line | What to do |
|---|---|
| The task changes files you have edited and not committed, then the files. It can also say that the two cannot be combined, with the reason for each file. | Commit those edits or put them aside, then click Merge again. |
| The project is not on a branch (detached HEAD). | Check out a branch, then try again. |
| A Git operation, such as a merge or a rebase, is in progress in the project. | Finish or abort it, then try again. |
| Git has no name and email for this project. | Set user.name and user.email, then try again. |
| The project has no commit yet, so there is nothing to add to. | Make a first commit in the project. |
| Another Git command is running in the project (index.lock). | Try again when it has finished. |
| A file or folder that is not tracked is already where the task adds a file, then the path. | Move or delete it, then try again. |
| The task changes files Git is set not to check for edits, then the files. | Turn that off with git update-index --no-assume-unchanged or --no-skip-worktree, then try again. |
| The branch got a new commit while this was being prepared. Or a file changed while the change was being written. | Try again. |
| Git could not sign the commit. Or Git did not finish signing the commit in time, so nothing was changed. | Check that commit signing works. Try again, and answer the passphrase prompt when it shows. |
| The task has a Git repository inside it, then the folder. A merge would add only a link to it, not its files. | Have the commander remove that folder's .git folder or move the repository out of its copy, then merge again. |
| The project already has every change of this task. | Nothing is left to merge. |
| The project folder is gone or is not a Git repository. | Put the project folder back. |
| The task's saved changes are no longer in the repository. | The task can't be merged. |
| The task and the project changed the same lines. | The task changes to a clash. See When a task clashes with your project. |
A click on a task that is in another state gets a short answer, such as This task is already merged., This task was discarded., This task has an open pull request., or This task's changes now belong to a newer task.
When a task clashes with your project
If the task and your project changed the same lines, Merge writes nothing. The task changes to a clash.
- The status line names the files, for example These files changed in the project too: src/app.js. If it has no file names, it reads The project changed the same lines too.
- Control Deck brings the current state of your project into the commander's copy and asks the commander to fix the files and report again. The status line ends with Waiting for Alpha to fix them.
- The message keeps See changes and Discard. Merge is gone.
- When the commander reports again, a new message for the task appears with Merge.
If the commander isn't running, the status line ends with Control Deck could not reach Alpha. Start it and ask it to fix them, or discard the task.
Undo a merge
To take a merged task back out of your project, click Undo on its message.
- Undo adds one revert commit to the branch. The merged commit stays in the history. The message of the revert commit is
Revert, the first line of the merged commit in quotation marks, and a line that names the commit it reverts. - Undo works after you pushed the branch. It doesn't rewrite history, and it pushes nothing.
- Your uncommitted edits stay as they are, by the same rules as for Merge.
- The work stays in the commander's copy. The task waits again with its buttons, and the status line reads Undone. The work is still in Alpha's copy.
- You can merge the task again with a click. With When checks pass, an undone task doesn't merge by itself again until the commander finishes new work.
If Undo can't run, nothing is written, and the status line says why:
| Status line | Meaning |
|---|---|
| The merged commit is not in the history of the branch the project is on. | Your project folder is on another branch. Check out the branch the task was merged into, then try again. |
| Later commits changed the same lines, then the files. Undo cannot take this task out on its own. | Newer commits build on the task. Take the changes out by hand. |
| The branch no longer has this task's changes. | Nothing is left to undo. |
| The merged commit is no longer in the repository. | The commit was removed from the repository. |
| This task is not merged, so there is nothing to undo. | The task is in another state. |
The other reasons are the same as for Merge, such as a detached HEAD or a Git operation in progress.
Discard a task
To drop a finished task, click Discard on its message. The status line then reads Discarded.
- Discard takes the task's changes out of the commander's copy.
- It removes the worker copies that were made from that copy.
- It doesn't touch your project folder or your branch.
Discard waits for the commander and its workers. If the commander is working, the status line reads The commander is working. Discard when it has finished. If one of its workers is running, it reads A worker of this commander is still running. Discard when it has finished.
If a commander takes its own changes back out before you merge, the task is discarded for you. The status line reads Alpha took these changes back out.
How long discarded changes are kept
Control Deck keeps the changes of a discarded task in your repository, so See changes still opens them. The same is true for a task whose changes became part of a newer task.
Remove worktrees of archived commanders after sets how long they are kept. It's in Settings > Workspace, in the Archived commanders panel.
| Option | What happens to discarded changes |
|---|---|
| Never (default) | They are kept for good. |
| 1 day, or 3, 7, 14, 30, 60, 90, 180, or 365 days | They are deleted after that many days. Control Deck checks one time a day. |
After the saved changes are deleted, the message loses See changes. A click on an older copy of the button answers This task's changes are no longer kept.
The same setting removes the copies of archived commanders. See Archived commanders.
Pull requests
To send a finished task to GitHub instead of merging it into your project folder, click Open PR.
What you need
- A Git remote whose push addresses all point to one repository on
github.com. Without one, the button doesn't show. - The default branch of that repository, pushed to GitHub.
- A Git name and email for the project.
- Push access. Git uses the sign-in you already have. Git Credential Manager can show its sign-in window.
If the project has several GitHub remotes, Control Deck uses the one that the current branch tracks, then origin, then the first one.
What Open PR does
It fetches the default branch from GitHub.
It makes one commit that holds the task's changes, on top of the default branch as it is on GitHub. The commit message is the commander's summary, as for Merge.
It pushes that commit to a new branch on GitHub.
The branch name comes from the first point of the summary: lowercase words joined by hyphens, up to 48 characters. If the name is taken, a number is added, for example
-2. A task with no summary getscommander-task.It opens the pull request.
If the GitHub CLI (
gh) is installed and signed in togithub.com, Control Deck creates the pull request. The title is the first line of the commit message, and the body is the rest. The status line reads Pull request #7 open.Without the GitHub CLI, Control Deck opens the compare page of the new branch in your default browser. The status line reads Pushed, the branch, and Finish the pull request on GitHub.
What changes on your PC
The files, the index, and the branches of your project folder are not touched, with one exception: Control Deck makes a local branch with the same name for the pushed commit. A branch with that name that exists already is never moved.
Your project's pre-push hook runs during the push. A push that takes longer than 5 minutes is stopped.
After the pull request is open
The message keeps See changes and Open on GitHub. Merge is gone while the pull request is open. Control Deck checks the pull request every 10 minutes.
| On GitHub | In the Control chat |
|---|---|
| The pull request is merged. | The status line reads Pull request #7 merged. |
| The pull request is closed without a merge. | The status line reads Pull request #7 closed. The work goes back into the commander's copy, and the task waits again with its buttons. |
| The branch is gone. | The status line reads Pull request #7: its branch is gone from GitHub. or The branch, its name, and is gone from GitHub. Control Deck can't tell whether it was merged. The message adds Discard. |
To archive a commander when its pull request merges, set Archive commanders to When its pull request merges in Settings > Workspace. See Archived commanders.
When Open PR can't run
| Status line | What to do |
|---|---|
| The project has no GitHub remote. | Add a remote on github.com. |
| Git could not tell which branch is the default on the remote. | Check the remote and your connection, then try again. |
| The remote has no default branch yet. Push the project to GitHub first. | Push the project. |
| Git could not fetch the default branch. | Check your connection and your sign-in, then try again. |
| These files differ between the default branch on GitHub and the project the task started from, then the files. | Pull or push the default branch so they match, then try again. Or merge the task in your project. |
| The default branch on GitHub already has every change of this task. | Nothing is left to send. |
| Git has no name and email for this project. | Set user.name and user.email, then try again. |
| A signing error that ends with so nothing was pushed. | Check that commit signing works. Try again, and answer the passphrase prompt when it shows. |
| Pushing the branch did not finish in time, so it was stopped. | Check your connection and your sign-in, then try again. |
| Pushed the branch, but Control Deck could not record it. Click Open PR to try again. | Click Open PR again. |
| The task has a Git repository inside it, then the folder. A pull request would hold only a link to it. | Have the commander remove that folder's .git folder or move the repository out of its copy. |
Open on GitHub opens only addresses on github.com. For another address, it answers The pull request address is not on github.com, so it was not opened.
Run it
To try a task before you merge it, click Run it. Control Deck asks the commander to start the project from its copy, never from your project folder. The status line reads Asked Alpha to run it.
When the commander gives a local address, it opens in the deck's preview card. Only http and https addresses on 127.0.0.1, localhost, or [::1] open. See Tool cards.
| Status line | Meaning |
|---|---|
| Alpha is busy. Try again when it finishes. | The commander is in the middle of a turn. |
| Control Deck could not reach Alpha. Start it, then try again. | The commander isn't running. |
| Alpha's copy is gone. | The commander's copy was removed. |
Merge finished tasks when checks pass
Merge finished tasks sets when a finished task merges into your project. Each deck has its own value. To see the setting, open Settings > Workspace from a deck and find the Autonomous panel.
| Option | What happens |
|---|---|
| When I click Merge (default) | A finished task waits until you click Merge. |
| When checks pass | When a task finishes, Control Deck runs the deck's check command in the commander's copy. If the command exits with 0, Control Deck merges the task. Without an approved check command, the task waits for your click. |
While the command runs, the status line reads Running the checks. A merge by checks follows every rule of Merge a finished task.
| Result | Status line | What happens |
|---|---|---|
| The command exits with 0. | Checks passed. Merged into main. | The task is merged. |
| The command exits with another code. | The checks failed: the command, then exited with code and the code. | The task waits for you. |
| The command runs longer than 10 minutes. | The checks failed: the command, then ran longer than 10 minutes. | The command is stopped. The task waits for you. |
| The command changes files that Git tracks. | The checks changed files in Alpha's copy, then the files. | The task waits for you. |
The command passes, but the task changes the scripts of a package.json file or a file that the check command names. | Checks passed. The task changes what the checks use: the files, then It waits for you to merge it. | The task waits for you. |
| The command can't run. | The checks could not run: or The checks did not run., then the reason. | The task waits for you. |
The checks can't run while the commander is working in its copy, after the copy is gone, or after the files in the copy changed since the task finished.
Files that the check command adds are its own output. They are not merged.
Control Deck doesn't run failed checks again by itself. It checks a task again when the commander finishes new work on it. It also checks the waiting tasks when you set a deck to When checks pass or approve its check command.
The check command
Each deck has one check command, for example a test command. It has these rules:
- It is one line of up to 2,000 characters.
- It has 10 minutes to finish.
- It can't install, update, or remove packages, and it can't delete
node_modules. In a commander's copy,node_modulesis a link to the real folder of your project. - It runs only after you approved its exact text. A change to the text needs a new approval.
There are two ways to set it.
- In Settings > Workspace, type the command in Check command, then click Save or press Enter. A command that you save here is approved. To remove the command, clear the field and save. The field shows only while the deck is set to When checks pass.
- A commander proposes one. The Control chat then shows Run this check command in the commander's copy before a finished task merges, the command, and the buttons Approve and Reject. The same proposal shows under the field in Settings, with the same two buttons.
Only your own click approves a check command. The Permission prompts setting never answers this prompt. While a new proposal waits, the command you approved before keeps running. Approve puts the new command in its place. Reject drops only the new one, and the commander can't propose the same text again. The prompt stays open across a restart of Control Deck.
For the other prompts that agents send you, see Permissions and approvals.
Worker setup command
A new worker copy can lack files that a build generates. Each deck has one worker setup command that runs in every new worker copy before the worker starts, or none.
- It is one line of up to 2,000 characters.
- It has 5 minutes to finish.
- It can't install, update, or remove packages, and it can't delete
node_modules. In a worker copy,node_modulesis a link to the real folder of your project. A command that only mentions such a step, for exampleecho npm install, is refused too. - It runs through the system shell in the worker's copy, with no window and no input.
- If it fails or runs out of time, the worker still starts and is told that setup failed.
Approve the command
The commander proposes a command, or proposes none. The Control chat then shows Run this worker setup command in each new worker copy, the command, and the buttons Approve and Reject.
- Until the command is decided, the commander can't start workers that need a copy.
- Only your own click approves it. The approval is for the exact text, for that deck.
- Reject clears the proposal. The commander then proposes another command or none.
- If the prompt is still open when a commander asks to start workers again, Control Deck shows it again.
Set the command yourself
Open Settings > Workspace from the deck.
In Worker setup command, type the command.
Click Save, or press Enter.
A command that you save in Settings is approved. To run no command, clear the field and save. A command that a commander proposed shows under the field with Approve and Reject.
If the text breaks a rule, Settings shows why, for example The setup command must be one line. or The setup command is longer than 2,000 characters.
A project folder that Git doesn't track
If Git doesn't track a deck's project folder, or the repository has no commits, a commander works in the folder itself. Its work can't be merged or undone, because there is no history to add to.
When such a commander finishes, the Control chat shows its name and finished., one of these lines, and a Start tracking button:
- This folder is not a Git repository, so there is nothing to merge or undo.
- This folder has no Git commits yet, so there is nothing to merge or undo.
Nothing runs until you click the button.
What Start tracking does
- If Git doesn't track the folder at all, it runs
git init. - It makes one first commit of every file that Git doesn't ignore, with the message
Initial commit. - The first commit never holds
node_modulesfolders or.envfiles, such as.env,.env.local, or.env.production, at any depth. That includes files that were staged before. - Env template files are committed. Their names end in
.example,.sample,.template,.dist, or.defaults, for example.env.exampleor.env.local.example. - The files on disk and your
.gitignoredon't change. Control Deck lists the left-out names in the repository's own exclude file,.git/info/exclude. - It refuses if Git has no
user.nameanduser.email.
The message then reads Git now tracks this folder. A commander that starts a new conversation after that gets its own copy.
| Message | What to do |
|---|---|
| The folder is inside another Git repository | Make the first commit in that repository yourself. |
| Git has no name and email to commit with. | Set them with git config --global user.name and git config --global user.email, then try again. |
| Git took too long to make the first commit. | Check that commit signing works, then try again. |
| The project folder is gone. | Put the folder back. |
| Git could not start tracking the folder: and Git's error | Fix the error, then click Start tracking again. |
The Worker copies panel
The Worker copies panel in Settings > Workspace lists every worker copy that is still on your PC, oldest first. If there are none, it shows No worker copies.
| Column | What it shows |
|---|---|
| Task | The title of the worker's task. If the task has no title, the worker's name. |
| Why it is kept | The reason the copy is still on disk. |
| Size | The disk space of the copy. Linked folders are not counted. |
Why a copy is kept
| Reason | Meaning | Removed by cleanup |
|---|---|---|
| Worker is running | The worker is at work in the copy. The row has no Remove button. | No |
| Result not applied yet | The worker finished, and its changes wait to be merged. | No |
| Conflict | The merge of the worker's changes stopped with a conflict. | No |
| Interrupted, has changes | The worker was interrupted, and the copy holds changes. | No |
| Interrupted, no changes | The worker was interrupted before it changed a file. | Yes |
| Interrupted | The worker was interrupted, and Control Deck couldn't tell whether the copy holds changes. | No |
| Submodule changes not merged | The copy holds changes inside a submodule. The reason names up to 3 submodules, then counts the rest. Point to the reason to see the copy's folder. | No |
| Project folder is missing | The project that the copy belongs to is gone. | No |
| Waiting to be removed | The changes were merged or discarded. | Yes |
Remove a copy
In the copy's row, click Remove.
If the copy can hold changes, a dialog asks Remove this worker copy? and says that the changes in the copy will be lost and that this cannot be undone. Click Remove.
A copy with the reason Interrupted, no changes or Waiting to be removed is removed without the dialog.
If a copy can't be removed, the error shows under the table.
Commander copies in the panel
A commander's copy is not listed while its commander is on a deck. The copies of archived commanders are listed in the archive. See Archived commanders. After a commander is gone for good, its copy is removed if it holds no changes. If it holds changes, it is kept and listed here.
Cleanup
Control Deck cleans up worker copies 1 minute after it starts, then every hour. A worker's copy is also removed when the worker closes after its changes are merged.
A copy that holds work has no time limit. It stays until its changes are merged or you remove it.
Reminders in the Control chat
- When an interrupted copy still holds changes 7 days after it was made, the Control chat shows one message: The worker copy for "Add login" was interrupted and still has changes after 7 days.
- When a copy is kept for submodule changes, the Control chat shows one message that names the submodules and the copy's folder.
Each message has an Open Settings button that opens Settings > Workspace. Each copy gets its message one time.
After a restart
If you close Control Deck while a task is in progress, the work that copies hold stays on disk.
Interrupted workers
After you start the app again, the Control chat shows how many workers were interrupted, for example 2 workers were interrupted when the app closed.
| Button | What it does |
|---|---|
| Continue | Puts every listed worker back in the queue. A worker with a copy continues in it, with the changes it holds. |
| Discard | Cancels every listed worker and removes its copy with whatever it holds. |
If one worker can't continue or be discarded, the message names it and the reason, for example its deck is gone, its worker is closed, or its commander is closed. Copies in this message get no 7-day reminder. See Stop workers.
Results and tasks that wait
- A worker result that wasn't merged stays in its copy. The Worker copies panel lists it as Result not applied yet.
- A check command prompt that you haven't answered stays open.
A merge or an undo that was cut short
If the app closes in the middle of a Merge or an Undo, Control Deck settles it at the next start. It either finishes recording the commit or takes what was written back out.
| Status line | What to do |
|---|---|
| A message that the commit is on the branch, but Control Deck could not record it on the task, and It records it when it next starts. | Restart Control Deck. |
| An earlier merge or undo of this task stopped part way, and taking it back out did not finish. These files are not as they were before: the files, then Check them, then try again. | Check the named files in your project folder, then click the button again. |