You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add missing projects to a linked machine in one action
#36452
I linked a second machine to my main machine so that Auto balance can spread new threads between them. Auto balance only picks from the machines that have the project. My main machine had 20 projects with a git remote, and the new machine had none. So every new thread still started on the main machine.
"Add to another machine" adds one project to one machine. To set up the new machine, I had to do that 20 times. Each new machine repeats this work, and each new project must be added to each machine one at a time.
Proposed solution
Add one action that adds the missing projects to a machine. Two possible entry points:
In Settings, each linked machine gets an "Add missing projects" action. It lists the projects that have a git remote and are not on that machine, all selected by default.
In the "Add to another machine" dialog, the target list gets an "All machines" option.
Either one alone covers my case.
Most of the logic exists already. useAddProjectTargets lists the connected machines that do not have a project and can clone it. addProjectToMachine clones one project to one machine. Each target machine picks its own clone folder from its own configuration (addProjectBaseDirectory, ghqCloneLayout), so the action does not have to ask for a path per project. A bulk action can call the existing clone for each pair of project and machine.
Expected behavior
One action adds the selected projects to the selected machines.
The action skips projects that have no git remote, and lists them.
Each clone shows its progress and errors in the same way as the single-project dialog. One failed clone does not stop the others.
Nothing happens automatically. The user starts the action.
Open question: the single-project dialog can also copy git-ignored files, such as .env. I do not know if a bulk add must use the same default selection of files or skip them.
Workaround
A thread in full-access mode can call t3_project_clone and then t3_project_create for each repository, with the environmentId of the new machine. This does not copy git-ignored files.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Problem or use case
I linked a second machine to my main machine so that Auto balance can spread new threads between them. Auto balance only picks from the machines that have the project. My main machine had 20 projects with a git remote, and the new machine had none. So every new thread still started on the main machine.
"Add to another machine" adds one project to one machine. To set up the new machine, I had to do that 20 times. Each new machine repeats this work, and each new project must be added to each machine one at a time.
Proposed solution
Add one action that adds the missing projects to a machine. Two possible entry points:
Either one alone covers my case.
Most of the logic exists already.
useAddProjectTargetslists the connected machines that do not have a project and can clone it.addProjectToMachineclones one project to one machine. Each target machine picks its own clone folder from its own configuration (addProjectBaseDirectory,ghqCloneLayout), so the action does not have to ask for a path per project. A bulk action can call the existing clone for each pair of project and machine.Expected behavior
Open question: the single-project dialog can also copy git-ignored files, such as
.env. I do not know if a bulk add must use the same default selection of files or skip them.Workaround
A thread in full-access mode can call
t3_project_cloneand thent3_project_createfor each repository, with theenvironmentIdof the new machine. This does not copy git-ignored files.Related requests
delegate_taskto clone a missing project on demand. That request is about agents. This request is about a user who sets up a new machine.Version: 0.1.10-nightly.20261113.4630
All reactions