Repository navigation
chore: sync fork onto v0.1.12-nightly.20261125.5230 - #80
Conversation
|
Full range-diff, part 1 of 2: range-diff part 1 1: ac39d7f757 = 1: 1632433305 fix(server): treat a delegated task like a subagent for background work
2: 00fb98dd3e = 2: 56a996e744 fix(server): delegated tasks notify only when they wait on the user
3: cd581ab4a1 = 3: d2c4dcbfa3 fix(client): pickers and announcer leave out delegated tasks shown under a parent
4: f1e8916567 ! 4: 7e9f30c202 feat(client): group delegated tasks under their parent when its machine is not connected
@@ apps/mobile/src/features/threads/useThreadListV2.ts: export function useThreadLi
## apps/mobile/src/i18n/translations/de.json ##
@@
- "8d545d54c0a9e950": "Die Befehle, Bearbeitungen und Suchen ausblenden, die Agenten ausführen. „Erfolgreiche ausblenden“ behält Fehler. „Zen“ zeigt nur endgültige Antworten. Genehmigungen, Fragen und Fehler werden immer angezeigt.",
- "99d51127f573296b": "Weiteres Konto",
- "8ec2c57414669b79": "Verbinde einen zweiten {tracker}-Workspace oder -Nutzer.",
-- "892f08d21b8e48a9": "{layers} per {kind, select, squash {Squash} merge {Merge} rebase {Rebase} fastForward {Fast-Forward} other {{method}}} in {base} mergen, sobald die Anforderungen erfüllt sind. Das kann sofort passieren."
-+ "892f08d21b8e48a9": "{layers} per {kind, select, squash {Squash} merge {Merge} rebase {Rebase} fastForward {Fast-Forward} other {{method}}} in {base} mergen, sobald die Anforderungen erfüllt sind. Das kann sofort passieren.",
+ "1a1beecff68a6e61": "Google-Konto bestätigen",
+ "99451a5d2d40440f": "Zurückgezogen von {by}.",
+ "3ee30a50b70fffab": "Zurückgezogen von {by}: {reason}",
+- "201490988858b511": "zurückgezogen von {by}"
++ "201490988858b511": "zurückgezogen von {by}",
+ "3d4448e3c061f894": "Anderer Rechner",
+ "349587beaf00ce5e": "{title}, delegiert von {machine}, {count, plural, one {{count} Aufgabe} other {{count} Aufgaben}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} Aufgabe} other {{count} Aufgaben}}"
@@ apps/mobile/src/i18n/translations/de.json
## apps/mobile/src/i18n/translations/en.json ##
@@
- "8d545d54c0a9e950": "Hide the commands, edits, and searches agents run. Hide successful keeps failures. Zen shows only final answers. Approvals, questions, and errors always show.",
- "99d51127f573296b": "Another account",
- "8ec2c57414669b79": "Connect a second {tracker} workspace or user.",
-- "892f08d21b8e48a9": "Merge {layers} into {base} using {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} once their requirements are met. This may happen immediately."
-+ "892f08d21b8e48a9": "Merge {layers} into {base} using {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} once their requirements are met. This may happen immediately.",
+ "1a1beecff68a6e61": "Verify Google account",
+ "99451a5d2d40440f": "Withdrawn by {by}.",
+ "3ee30a50b70fffab": "Withdrawn by {by}: {reason}",
+- "201490988858b511": "withdrawn by {by}"
++ "201490988858b511": "withdrawn by {by}",
+ "3d4448e3c061f894": "Other machine",
+ "349587beaf00ce5e": "{title}, delegated from {machine}, {count, plural, one {{count} task} other {{count} tasks}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} task} other {{count} tasks}}"
@@ apps/mobile/src/i18n/translations/en.json
## apps/mobile/src/i18n/translations/es.json ##
@@
- "8d545d54c0a9e950": "Oculta los comandos, ediciones y búsquedas que ejecutan los agentes. Ocultar las correctas mantiene los fallos. Zen solo muestra las respuestas finales. Las aprobaciones, preguntas y errores siempre se muestran.",
- "99d51127f573296b": "Otra cuenta",
- "8ec2c57414669b79": "Conecta un segundo espacio de trabajo o usuario de {tracker}.",
-- "892f08d21b8e48a9": "Fusionar {layers} en {base} con {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} cuando se cumplan sus requisitos. Puede ocurrir de inmediato."
-+ "892f08d21b8e48a9": "Fusionar {layers} en {base} con {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} cuando se cumplan sus requisitos. Puede ocurrir de inmediato.",
+ "1a1beecff68a6e61": "Verificar cuenta de Google",
+ "99451a5d2d40440f": "Retirada por {by}.",
+ "3ee30a50b70fffab": "Retirada por {by}: {reason}",
+- "201490988858b511": "retirada por {by}"
++ "201490988858b511": "retirada por {by}",
+ "3d4448e3c061f894": "Otra máquina",
+ "349587beaf00ce5e": "{title}, delegado desde {machine}, {count, plural, one {{count} tarea} other {{count} tareas}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} tarea} other {{count} tareas}}"
@@ apps/mobile/src/i18n/translations/es.json
## apps/mobile/src/i18n/translations/fr.json ##
@@
- "8d545d54c0a9e950": "Masque les commandes, modifications et recherches lancées par les agents. Masquer les réussis garde les échecs. Zen n’affiche que les réponses finales. Les approbations, questions et erreurs s’affichent toujours.",
- "99d51127f573296b": "Autre compte",
- "8ec2c57414669b79": "Connectez un second espace de travail ou utilisateur {tracker}.",
-- "892f08d21b8e48a9": "Fusionner {layers} dans {base} avec {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} dès que leurs conditions sont remplies. Cela peut se produire immédiatement."
-+ "892f08d21b8e48a9": "Fusionner {layers} dans {base} avec {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} dès que leurs conditions sont remplies. Cela peut se produire immédiatement.",
+ "1a1beecff68a6e61": "Vérifier le compte Google",
+ "99451a5d2d40440f": "Retirée par {by}.",
+ "3ee30a50b70fffab": "Retirée par {by} : {reason}",
+- "201490988858b511": "retirée par {by}"
++ "201490988858b511": "retirée par {by}",
+ "3d4448e3c061f894": "Autre machine",
+ "349587beaf00ce5e": "{title}, délégué depuis {machine}, {count, plural, one {{count} tâche} other {{count} tâches}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} tâche} other {{count} tâches}}"
@@ apps/mobile/src/i18n/translations/fr.json
## apps/mobile/src/i18n/translations/ja.json ##
@@
- "8d545d54c0a9e950": "エージェントが実行するコマンド、編集、検索を非表示にします。「成功したものを非表示」では失敗は表示されます。Zen では最終的な回答だけを表示します。承認、質問、エラーは常に表示されます。",
- "99d51127f573296b": "別のアカウント",
- "8ec2c57414669b79": "2つ目の {tracker} ワークスペースまたはユーザーを接続します。",
-- "892f08d21b8e48a9": "要件が満たされたら、{layers} を{kind, select, squash {スカッシュ} merge {マージ} rebase {リベース} fastForward {早送り} other {{method}}}で {base} にマージします。すぐにマージされる場合があります。"
-+ "892f08d21b8e48a9": "要件が満たされたら、{layers} を{kind, select, squash {スカッシュ} merge {マージ} rebase {リベース} fastForward {早送り} other {{method}}}で {base} にマージします。すぐにマージされる場合があります。",
+ "1a1beecff68a6e61": "Google アカウントを確認",
+ "99451a5d2d40440f": "{by} が取り下げました。",
+ "3ee30a50b70fffab": "{by} が取り下げました: {reason}",
+- "201490988858b511": "{by} が取り下げ"
++ "201490988858b511": "{by} が取り下げ",
+ "3d4448e3c061f894": "別のマシン",
+ "349587beaf00ce5e": "{title}、{machine} から委任、{count, plural, other {{count} 件のタスク}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, other {{count} 件のタスク}}"
@@ apps/mobile/src/i18n/translations/ja.json
## apps/mobile/src/i18n/translations/ko.json ##
@@
- "8d545d54c0a9e950": "에이전트가 실행하는 명령, 편집, 검색을 숨깁니다. 성공한 항목 숨기기는 실패를 남겨 둡니다. Zen은 최종 답변만 표시합니다. 승인, 질문, 오류는 항상 표시됩니다.",
- "99d51127f573296b": "다른 계정",
- "8ec2c57414669b79": "두 번째 {tracker} 워크스페이스 또는 사용자를 연결합니다.",
-- "892f08d21b8e48a9": "요구 사항이 충족되면 {layers}을(를) {kind, select, squash {스쿼시} merge {병합} rebase {리베이스} fastForward {빨리 감기} other {{method}}} 방식으로 {base}에 병합합니다. 바로 병합될 수도 있습니다."
-+ "892f08d21b8e48a9": "요구 사항이 충족되면 {layers}을(를) {kind, select, squash {스쿼시} merge {병합} rebase {리베이스} fastForward {빨리 감기} other {{method}}} 방식으로 {base}에 병합합니다. 바로 병합될 수도 있습니다.",
+ "1a1beecff68a6e61": "Google 계정 확인",
+ "99451a5d2d40440f": "{by}에서 철회했습니다.",
+ "3ee30a50b70fffab": "{by}에서 철회했습니다: {reason}",
+- "201490988858b511": "{by}에서 철회함"
++ "201490988858b511": "{by}에서 철회함",
+ "3d4448e3c061f894": "다른 기기",
+ "349587beaf00ce5e": "{title}, {machine}에서 위임됨, {count, plural, other {작업 {count}개}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, other {작업 {count}개}}"
@@ apps/mobile/src/i18n/translations/ko.json
## apps/mobile/src/i18n/translations/pt-BR.json ##
@@
- "8d545d54c0a9e950": "Oculta os comandos, edições e pesquisas que os agentes executam. \"Ocultar bem-sucedidas\" mantém as falhas. Zen mostra só as respostas finais. Aprovações, perguntas e erros sempre aparecem.",
- "99d51127f573296b": "Outra conta",
- "8ec2c57414669b79": "Conecte um segundo espaço de trabalho ou usuário do {tracker}.",
-- "892f08d21b8e48a9": "Mesclar {layers} em {base} usando {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} quando os requisitos forem atendidos. Isso pode acontecer imediatamente."
-+ "892f08d21b8e48a9": "Mesclar {layers} em {base} usando {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} quando os requisitos forem atendidos. Isso pode acontecer imediatamente.",
+ "1a1beecff68a6e61": "Verificar conta Google",
+ "99451a5d2d40440f": "Retirada por {by}.",
+ "3ee30a50b70fffab": "Retirada por {by}: {reason}",
+- "201490988858b511": "retirada por {by}"
++ "201490988858b511": "retirada por {by}",
+ "3d4448e3c061f894": "Outra máquina",
+ "349587beaf00ce5e": "{title}, delegado de {machine}, {count, plural, one {{count} tarefa} other {{count} tarefas}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} tarefa} other {{count} tarefas}}"
@@ apps/mobile/src/i18n/translations/pt-BR.json
## apps/mobile/src/i18n/translations/ru.json ##
@@
- "8d545d54c0a9e950": "Скрывать команды, правки и поиски, которые выполняют агенты. «Скрывать успешные» оставляет ошибки. «Дзен» показывает только итоговые ответы. Запросы подтверждения, вопросы и ошибки показываются всегда.",
- "99d51127f573296b": "Другой аккаунт",
- "8ec2c57414669b79": "Подключите второе рабочее пространство или пользователя {tracker}.",
-- "892f08d21b8e48a9": "Слить {layers} в {base} методом {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}}, когда будут выполнены требования. Это может произойти сразу."
-+ "892f08d21b8e48a9": "Слить {layers} в {base} методом {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}}, когда будут выполнены требования. Это может произойти сразу.",
+ "1a1beecff68a6e61": "Подтвердить аккаунт Google",
+ "99451a5d2d40440f": "Отозван: {by}.",
+ "3ee30a50b70fffab": "Отозван ({by}): {reason}",
+- "201490988858b511": "отозван: {by}"
++ "201490988858b511": "отозван: {by}",
+ "3d4448e3c061f894": "Другой компьютер",
+ "349587beaf00ce5e": "{title}, делегировано с {machine}, {count, plural, one {{count} задача} few {{count} задачи} many {{count} задач} other {{count} задачи}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} задача} few {{count} задачи} many {{count} задач} other {{count} задачи}}"
@@ apps/mobile/src/i18n/translations/ru.json
## apps/mobile/src/i18n/translations/sv.json ##
@@
- "8d545d54c0a9e950": "Dölj kommandon, redigeringar och sökningar som agenter kör. Dölj lyckade behåller misslyckanden. Zen visar bara slutliga svar. Godkännanden, frågor och fel visas alltid.",
- "99d51127f573296b": "Ett konto till",
- "8ec2c57414669b79": "Anslut en andra {tracker}-arbetsyta eller användare.",
-- "892f08d21b8e48a9": "Merga {layers} in i {base} med {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} när kraven är uppfyllda. Det kan ske direkt."
-+ "892f08d21b8e48a9": "Merga {layers} in i {base} med {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} när kraven är uppfyllda. Det kan ske direkt.",
+ "1a1beecff68a6e61": "Verifiera Google-konto",
+ "99451a5d2d40440f": "Återkallad av {by}.",
+ "3ee30a50b70fffab": "Återkallad av {by}: {reason}",
+- "201490988858b511": "återkallad av {by}"
++ "201490988858b511": "återkallad av {by}",
+ "3d4448e3c061f894": "Annan dator",
+ "349587beaf00ce5e": "{title}, delegerad från {machine}, {count, plural, one {{count} uppgift} other {{count} uppgifter}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} uppgift} other {{count} uppgifter}}"
@@ apps/mobile/src/i18n/translations/sv.json
## apps/mobile/src/i18n/translations/zh.json ##
@@
- "8d545d54c0a9e950": "隐藏智能体执行的命令、编辑和搜索。“隐藏成功的调用”仍保留失败项;“专注模式”仅显示最终回答。审批、提问和错误始终显示。",
- "99d51127f573296b": "其他账号",
- "8ec2c57414669b79": "连接第二个 {tracker} 工作区或用户。",
-- "892f08d21b8e48a9": "满足要求时使用{kind, select, squash {压缩合并} merge {合并} rebase {变基} fastForward {快进} other {{method}}}方式将 {layers} 合并到 {base}。这可能会立即发生。"
-+ "892f08d21b8e48a9": "满足要求时使用{kind, select, squash {压缩合并} merge {合并} rebase {变基} fastForward {快进} other {{method}}}方式将 {layers} 合并到 {base}。这可能会立即发生。",
+ "1a1beecff68a6e61": "验证 Google 账户",
+ "99451a5d2d40440f": "已由 {by} 撤回。",
+ "3ee30a50b70fffab": "已由 {by} 撤回:{reason}",
+- "201490988858b511": "已由 {by} 撤回"
++ "201490988858b511": "已由 {by} 撤回",
+ "3d4448e3c061f894": "其他机器",
+ "349587beaf00ce5e": "{title},由 {machine} 委派,{count, plural, other {{count} 个任务}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, other {{count} 个任务}}"
@@ apps/web/src/components/Sidebar.tsx: import {
+import { environmentThreadShells, threadEnvironment } from "../state/threads";
import { useOlderSettledShelf, useOlderSettledShelfGrowth } from "../state/olderSettledShelf";
import { useThreadSearch } from "../state/queries";
- import { useOrchestrationCommand } from "../state/use-orchestration-command";
+ import { threadTriagePermitted, useOrchestrationCommand } from "../state/use-orchestration-command";
@@ apps/web/src/components/Sidebar.tsx: import {
resolveSidebarDropTarget,
resolveSidebarDropVerb,
@@ apps/web/src/components/sidebar/SidebarThreadRow.tsx: export function SortableTh
## apps/web/src/i18n/translations/de.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "Auto-Merge für Stack abbrechen",
-- "012c67c7f1a99e33": "Auto-Merge für Stack"
-+ "012c67c7f1a99e33": "Auto-Merge für Stack",
+ "201490988858b511": "zurückgezogen von {by}",
+ "99451a5d2d40440f": "Zurückgezogen von {by}.",
+ "3ee30a50b70fffab": "Zurückgezogen von {by}: {reason}",
+- "92e129bf413a1220": "zurückgezogen"
++ "92e129bf413a1220": "zurückgezogen",
+ "3d4448e3c061f894": "Anderer Rechner",
+ "349587beaf00ce5e": "{title}, delegiert von {machine}, {count, plural, one {{count} Aufgabe} other {{count} Aufgaben}}"
}
## apps/web/src/i18n/translations/en.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "Cancel stack auto-merge",
-- "012c67c7f1a99e33": "Auto-merge stack"
-+ "012c67c7f1a99e33": "Auto-merge stack",
+ "201490988858b511": "withdrawn by {by}",
+ "99451a5d2d40440f": "Withdrawn by {by}.",
+ "3ee30a50b70fffab": "Withdrawn by {by}: {reason}",
+- "92e129bf413a1220": "withdrawn"
++ "92e129bf413a1220": "withdrawn",
+ "3d4448e3c061f894": "Other machine",
+ "349587beaf00ce5e": "{title}, delegated from {machine}, {count, plural, one {{count} task} other {{count} tasks}}"
}
## apps/web/src/i18n/translations/es.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "Cancelar la fusión automática de la pila",
-- "012c67c7f1a99e33": "Fusión automática de la pila"
-+ "012c67c7f1a99e33": "Fusión automática de la pila",
+ "201490988858b511": "retirada por {by}",
+ "99451a5d2d40440f": "Retirada por {by}.",
+ "3ee30a50b70fffab": "Retirada por {by}: {reason}",
+- "92e129bf413a1220": "retirada"
++ "92e129bf413a1220": "retirada",
+ "3d4448e3c061f894": "Otra máquina",
+ "349587beaf00ce5e": "{title}, delegado desde {machine}, {count, plural, one {{count} tarea} other {{count} tareas}}"
}
## apps/web/src/i18n/translations/fr.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "Annuler la fusion automatique de la pile",
-- "012c67c7f1a99e33": "Fusion automatique de la pile"
-+ "012c67c7f1a99e33": "Fusion automatique de la pile",
+ "201490988858b511": "retirée par {by}",
+ "99451a5d2d40440f": "Retirée par {by}.",
+ "3ee30a50b70fffab": "Retirée par {by} : {reason}",
+- "92e129bf413a1220": "retirée"
++ "92e129bf413a1220": "retirée",
+ "3d4448e3c061f894": "Autre machine",
+ "349587beaf00ce5e": "{title}, délégué depuis {machine}, {count, plural, one {{count} tâche} other {{count} tâches}}"
}
## apps/web/src/i18n/translations/ja.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "スタックの自動マージをキャンセル",
-- "012c67c7f1a99e33": "スタックを自動マージ"
-+ "012c67c7f1a99e33": "スタックを自動マージ",
+ "201490988858b511": "{by} が取り下げ",
+ "99451a5d2d40440f": "{by} が取り下げました。",
+ "3ee30a50b70fffab": "{by} が取り下げました: {reason}",
+- "92e129bf413a1220": "取り下げ済み"
++ "92e129bf413a1220": "取り下げ済み",
+ "3d4448e3c061f894": "別のマシン",
+ "349587beaf00ce5e": "{title}、{machine} から委任、{count, plural, other {{count} 件のタスク}}"
}
## apps/web/src/i18n/translations/ko.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "스택 자동 병합 취소",
-- "012c67c7f1a99e33": "스택 자동 병합"
-+ "012c67c7f1a99e33": "스택 자동 병합",
+ "201490988858b511": "{by}에서 철회함",
+ "99451a5d2d40440f": "{by}에서 철회했습니다.",
+ "3ee30a50b70fffab": "{by}에서 철회했습니다: {reason}",
+- "92e129bf413a1220": "철회됨"
++ "92e129bf413a1220": "철회됨",
+ "3d4448e3c061f894": "다른 기기",
+ "349587beaf00ce5e": "{title}, {machine}에서 위임됨, {count, plural, other {작업 {count}개}}"
}
## apps/web/src/i18n/translations/pt-BR.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "Cancelar merge automático da pilha",
-- "012c67c7f1a99e33": "Merge automático da pilha"
-+ "012c67c7f1a99e33": "Merge automático da pilha",
+ "201490988858b511": "retirada por {by}",
+ "99451a5d2d40440f": "Retirada por {by}.",
+ "3ee30a50b70fffab": "Retirada por {by}: {reason}",
+- "92e129bf413a1220": "retirada"
++ "92e129bf413a1220": "retirada",
+ "3d4448e3c061f894": "Outra máquina",
+ "349587beaf00ce5e": "{title}, delegado de {machine}, {count, plural, one {{count} tarefa} other {{count} tarefas}}"
}
## apps/web/src/i18n/translations/ru.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "Отменить автослияние стека",
-- "012c67c7f1a99e33": "Автослияние стека"
-+ "012c67c7f1a99e33": "Автослияние стека",
+ "201490988858b511": "отозван: {by}",
+ "99451a5d2d40440f": "Отозван: {by}.",
+ "3ee30a50b70fffab": "Отозван ({by}): {reason}",
+- "92e129bf413a1220": "отозван"
++ "92e129bf413a1220": "отозван",
+ "3d4448e3c061f894": "Другой компьютер",
+ "349587beaf00ce5e": "{title}, делегировано с {machine}, {count, plural, one {{count} задача} few {{count} задачи} many {{count} задач} other {{count} задачи}}"
}
## apps/web/src/i18n/translations/sv.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "Avbryt automatisk merge för stacken",
-- "012c67c7f1a99e33": "Merga stacken automatiskt"
-+ "012c67c7f1a99e33": "Merga stacken automatiskt",
+ "201490988858b511": "återkallad av {by}",
+ "99451a5d2d40440f": "Återkallad av {by}.",
+ "3ee30a50b70fffab": "Återkallad av {by}: {reason}",
+- "92e129bf413a1220": "återkallad"
++ "92e129bf413a1220": "återkallad",
+ "3d4448e3c061f894": "Annan dator",
+ "349587beaf00ce5e": "{title}, delegerad från {machine}, {count, plural, one {{count} uppgift} other {{count} uppgifter}}"
}
## apps/web/src/i18n/translations/zh.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "取消堆叠自动合并",
-- "012c67c7f1a99e33": "自动合并堆叠"
-+ "012c67c7f1a99e33": "自动合并堆叠",
+ "201490988858b511": "已由 {by} 撤回",
+ "99451a5d2d40440f": "已由 {by} 撤回。",
+ "3ee30a50b70fffab": "已由 {by} 撤回:{reason}",
+- "92e129bf413a1220": "已撤回"
++ "92e129bf413a1220": "已撤回",
+ "3d4448e3c061f894": "其他机器",
+ "349587beaf00ce5e": "{title},由 {machine} 委派,{count, plural, other {{count} 个任务}}"
}
@@ packages/client-runtime/src/state/threadShell.ts: import {
const EMPTY_THREADS: ReadonlyArray<OrchestrationV2ThreadShell> = Object.freeze([]);
const EMPTY_SCOPED_THREAD_REFS: ReadonlyArray<ScopedThreadRef> = Object.freeze([]);
const EMPTY_THREAD_INDEX: ReadonlyMap<ThreadId, OrchestrationV2ThreadShell> = new Map();
-@@ packages/client-runtime/src/state/threadShell.ts: const isChildRunLive = (
+@@ packages/client-runtime/src/state/threadShell.ts: const isChildRunLive = (thread: Pick<OrchestrationV2ThreadShell, "activityRunSta
thread.status === "running" ||
thread.status === "waiting";
5: 8028f830c7 = 5: 499de67274 fix(client): Settled count leaves out tasks shown under their parent
6: a3db1b1404 ! 6: a0ac16722e fix(server): a delegated task settles with its parent across machines
@@ apps/server/src/orchestration-v2/RemoteDelegatedTask.test.ts: it.layer(layerTest
const orchestrator = yield* Orchestrator.OrchestratorV2;
## apps/server/src/orchestration-v2/ThreadSettlementService.test.ts ##
-@@ apps/server/src/orchestration-v2/ThreadSettlementService.test.ts: import { assert, describe, expect, it } from "@effect/vitest";
- import * as DateTime from "effect/DateTime";
- import {
- DEFAULT_SERVER_SETTINGS,
-+ EnvironmentId,
- GitManagerError,
- ProjectId,
- EventId,
@@ apps/server/src/orchestration-v2/ThreadSettlementService.test.ts: const appThread = (
deletedAt: null,
};
@@ apps/server/src/orchestration-v2/ThreadSettlementService.test.ts: describe("Thre
]);
expect(yield* Ref.get(fixture.branchCalls)).toEqual([]);
expect(yield* Ref.get(fixture.summaryCalls)).toEqual([]);
+@@ apps/server/src/orchestration-v2/ThreadSettlementService.test.ts: describe("ThreadSettlementServiceV2 worker", () => {
+ );
+
+ it.effect(
+- "settles a finished task delegated from a linked environment, which has no parent here",
++ "settles a finished task delegated from a linked environment once its parent there is done",
+ () =>
+ Effect.gen(function* () {
+ yield* TestClock.setTime(Date.parse(NOW));
+@@ apps/server/src/orchestration-v2/ThreadSettlementService.test.ts: describe("ThreadSettlementServiceV2 worker", () => {
+ environmentId: EnvironmentId.make("environment-elsewhere"),
+ threadId: ThreadId.make("parent-elsewhere"),
+ title: "Parent",
++ parentDoneAt: NOW,
+ },
+ };
+ const ordinary = { ...appThread("ordinary", null), branch: "feature" };
## apps/server/src/orchestration-v2/ThreadSettlementService.ts ##
+@@ apps/server/src/orchestration-v2/ThreadSettlementService.ts: import { resolveProjectSettings } from "@t3tools/shared/projectSettings";
+ import { visibleThreadPullRequests } from "@t3tools/shared/threadPullRequests";
+ import {
+ CommandId,
+- isDelegatedAppThread,
+ isOrchestrationV2WorkActive,
+ type ThreadId,
+ type OrchestrationV2DomainEvent,
@@ apps/server/src/orchestration-v2/ThreadSettlementService.ts: function autoSettlementConfigured(settings: import("@t3tools/contracts").ServerS
);
}
@@ apps/server/src/orchestration-v2/ThreadSettlementService.ts: export const make =
// Merge events resweep all candidates because unlinked threads settle through branch lookup.
const candidates = threads.filter(
(thread) =>
-- (automaticSettlementEnabled || thread.lineage.relationshipToParent === "subagent") &&
+- (automaticSettlementEnabled || isDelegatedAppThread(thread)) &&
+ (automaticSettlementEnabled || settlesWithParent(thread)) &&
isAutoSettlementCandidate(thread, nowMs),
);
@@ apps/server/src/orchestration-v2/ThreadSettlementService.ts: export const make =
// Runs per candidate thread, thousands per sweep on busy servers; the sweep owns the span.
const settleThread = Effect.fnUntraced(
function* (thread: (typeof candidates)[number], pullRequest: SettlementPullRequest | null) {
-- if (thread.lineage.relationshipToParent === "subagent") {
+- if (isDelegatedAppThread(thread)) {
+ if (settlesWithParent(thread)) {
if (yield* terminals.hasActiveSubprocess({ threadId: thread.id })) return null;
-- // The store returns a subagent only once its parent is done, so it
-- // settles with the parent and never runs its own lookup.
+- // The store returns a subagent only once its parent is done, so it settles with the
+- // parent. A task delegated from a linked environment has no parent here, so it settles
+- // once its own work is done. Neither runs its own lookup.
+ // The store returns a subagent only once its parent is done, and a delegated
+ // task is marked once its parent is, so it settles with it and never looks up.
const uuid = yield* random.uuidV4();
@@ apps/server/src/orchestration-v2/ThreadSettlementService.ts: export const make =
const lookupCandidates = (yield* Effect.forEach(
candidates,
(thread) => {
-- if (thread.lineage.relationshipToParent === "subagent") return settleThread(thread, null);
+- if (isDelegatedAppThread(thread)) return settleThread(thread, null);
+ if (settlesWithParent(thread)) return settleThread(thread, null);
const projectSettings = resolveProjectSettings(settings, thread.projectId).settings;
// Skip no-op decisions; actual settlement still reads fresh settings before dispatch.
7: d9967c5bec = 7: 63f3de0163 fix(mobile): Personal Team iOS builds drop push and associated domains entitlements
8: 3650223199 ! 8: b99ebc8d53 fix(server): the parent-done route refuses read-only links and renews only accepted ones
@@ apps/server/src/peer/RemoteDelegation.test.ts: import * as Stream from "effect/S
+import * as HttpClient from "effect/http/HttpClient";
+import * as HttpClientRequest from "effect/http/HttpClientRequest";
import * as TestClock from "effect/testing/TestClock";
- import type * as SqlClient from "effect/sql/SqlClient";
+ import * as SqlClient from "effect/sql/SqlClient";
import { McpSchema, McpServer } from "effect/ai";
@@ apps/server/src/peer/RemoteDelegation.test.ts: it.effect("only the environment that delegated a task can tell it its parent is
).pipe(Effect.provide(NodeHttpServer.layerTest)),
9: 8e740d998f ! 9: 483b7e2a34 fix(server): a parent's stop, archive or delete reaches its tasks in linked environments
@@ apps/server/src/orchestration-v2/Orchestrator.ts: const makeOrchestrator = Effec
const stopDelegatedTasks =
- command.stopDelegatedTasks === false ||
- !projection.subagents.some(
-- (task) => task.origin === "app_owned" && task.childThreadId !== null,
+- (task) =>
+- task.origin === "app_owned" &&
+- (task.childThreadId !== null || task.remoteChild !== undefined),
- )
+ command.stopDelegatedTasks === false || !projection.subagents.some(hasDelegatedChild)
? Effect.void
@@ apps/server/src/orchestration-v2/ThreadDeletion.test.ts: it.effect("queues provi
{ type: "terminal.cleanup" },
{ type: "preview.cleanup" },
{ type: "attachment.cleanup", attachmentIds: ["shared_file"] },
-+ // Last, so a stop waiting on another machine holds up none of the cleanup.
++ // After the cleanup, so a stop waiting on another machine holds none of it up.
+ { type: "delegated-tasks.stop", reason: "Thread deleted." },
+ { type: "thread-content.purge" },
],
);
- }).pipe(Effect.provide(IdAllocator.layer)),
## apps/server/src/orchestration-v2/ThreadDeletion.ts ##
@@ apps/server/src/orchestration-v2/ThreadDeletion.ts: import type {
@@ apps/server/src/orchestration-v2/ThreadDeletion.ts: export const planThreadDelet
request: { type: "attachment.cleanup", attachmentIds },
});
}
-+ // Last, since a thread's effects run in order and a stop may wait on another machine.
++ // After the cleanup, since a thread's effects run in order and a stop may wait on another
++ // machine; before the purge, which deletes the tasks the stop reads.
+ if (
+ projection.subagents.some(
+ (task) =>
@@ apps/server/src/orchestration-v2/ThreadDeletion.ts: export const planThreadDelet
+ request: { type: "delegated-tasks.stop", reason: "Thread deleted." },
+ });
+ }
- return { events, effects };
- });
+ effects.push({
+ id: `effect:${command.commandId}:thread-content.purge`,
+ commandId: command.commandId,
## apps/server/src/orchestration-v2/ThreadManagementService.ts ##
@@ apps/server/src/orchestration-v2/ThreadManagementService.ts: const make = Effect.gen(function* () {
@@ apps/server/src/orchestration-v2/ThreadStop.test.ts: it.effect("a repeated Stop
(type) =>
## apps/server/src/peer/RemoteDelegation.test.ts ##
-@@ apps/server/src/peer/RemoteDelegation.test.ts: import * as HttpBody from "effect/http/HttpBody";
- import * as HttpClient from "effect/http/HttpClient";
- import * as HttpClientRequest from "effect/http/HttpClientRequest";
- import * as TestClock from "effect/testing/TestClock";
--import type * as SqlClient from "effect/sql/SqlClient";
-+import * as SqlClient from "effect/sql/SqlClient";
- import { McpSchema, McpServer } from "effect/ai";
-
- import * as ServerConfig from "../config.ts";
@@ apps/server/src/peer/RemoteDelegation.test.ts: it.effect("a Stop on a task that has its result reaches there after a restart",
).pipe(Effect.provide(NodeHttpServer.layerTest)),
);
10: 43302dc6a1 = 10: e277ed7b51 fix(server): Codex full-access agent threads no longer ask command approvals
11: 87a0dbb313 = 11: cb27a3bea9 fix(server): scheduled Codex full-access runs no longer ask command approvals
12: 4de457f624 ! 12: 596205c852 feat(server): dispatch tools refuse unfilled briefs and misplaced model settings
@@ apps/server/src/mcp/OrchestratorMcpService.ts: import {
resolveProjectProviderInstanceEnabled,
SECRET_REQUEST_UNSAVED_NOTE,
} from "@t3tools/contracts";
-@@ apps/server/src/mcp/OrchestratorMcpService.ts: function providerConstraints(
- return constraints;
- }
-
--/** t3_thread_launch keeps a selection as given, so it can hold options its model does not have. */
-+/** A thread's selection can hold options its model lacks, as from t3_thread_configure or an older launch. */
- function knownOptions(
- options: ReadonlyArray<ProviderOptionSelection> | undefined,
- descriptors: ReadonlyArray<ProviderOptionDescriptor> | undefined,
-@@ apps/server/src/mcp/OrchestratorMcpService.ts: function invalidOptionSelections(
- return problems;
- }
-
-+/** delegate_task and t3_thread_launch accept the same option selections for a model. */
-+export const requireAdvertisedOptions = (
-+ provider: ServerProvider,
-+ model: string,
-+ options: ReadonlyArray<ProviderOptionSelection> | undefined,
-+) => {
-+ const descriptors = advertisedModel(provider, model)?.capabilities?.optionDescriptors;
-+ const requested = withLegacyUltracodeEffort(descriptors, options);
-+ const invalid = requested === undefined ? [] : invalidOptionSelections(requested, descriptors);
-+ return invalid.length === 0
-+ ? Effect.void
-+ : Effect.fail(
-+ failure(
-+ "invalid_request",
-+ `Model ${model} on provider ${provider.instanceId} rejected options: ${invalid.join(" ")}`,
-+ ),
-+ );
-+};
-+
- function taskStatusForRun(
- run: Pick<OrchestrationV2Run, "status" | "restartCancelledBackgroundWork"> | undefined,
- ): OrchestratorMcpDelegateTaskResult["status"] {
-@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function* () {
- const advertised = advertisedModel(provider, model);
- const descriptors = advertised?.capabilities?.optionDescriptors;
- const requestedOptions = withLegacyUltracodeEffort(descriptors, input.target?.options);
-- if (requestedOptions !== undefined) {
-- const invalid = invalidOptionSelections(requestedOptions, descriptors);
-- if (invalid.length > 0) {
-- return yield* failure(
-- "invalid_request",
-- `Model ${model} on provider ${instanceId} rejected options: ${invalid.join(" ")}`,
-- );
-- }
-- }
-+ yield* requireAdvertisedOptions(provider, model, input.target?.options);
-
- const inheritsOptions =
- instanceId === inheritedSelection.instanceId &&
@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function* () {
};
}),
@@ apps/server/src/mcp/toolkits/project/handlers.test.ts: it.effect("a launch with
expect(launched).toHaveLength(0);
expect(yield* launchWith("claudeAgent", "Opus")).toMatchObject({
-@@ apps/server/src/mcp/toolkits/project/handlers.test.ts: it.effect("a launch with a model its provider does not advertise creates no thre
- }),
+@@ apps/server/src/mcp/toolkits/project/handlers.test.ts: it.effect(
+ }),
);
+it.effect("a launch whose message still holds a placeholder creates no thread", () =>
@@ apps/server/src/mcp/toolkits/project/handlers.ts
CommandId,
+ literalTemplateRefusal,
MessageId,
+ type ModelSelection,
ThreadId,
- OrchestratorMcpFailure,
@@ apps/server/src/mcp/toolkits/project/handlers.ts: export const layer = McpToolAccess.toLayer(ProjectToolkit, {
const scope = yield* McpInvocationContext.McpInvocationContext;
const context = yield* readCaller();
@@ apps/server/src/mcp/toolkits/project/handlers.ts: export const layer = McpToolAc
// A retry with the same key replays the first launch: the ids derive
// from the caller and the key, and the launch service replays a
// command it already accepted.
-@@ apps/server/src/mcp/toolkits/project/handlers.ts: export const layer = McpToolAccess.toLayer(ProjectToolkit, {
- );
- return provider === undefined
- ? Effect.void
-- : OrchestrationMcp.requireAdvertisedModel(provider, model);
-+ : OrchestrationMcp.requireAdvertisedModel(provider, model).pipe(
-+ Effect.andThen(
-+ OrchestrationMcp.requireAdvertisedOptions(
-+ provider,
-+ model,
-+ input.modelSelection?.options,
-+ ),
-+ ),
-+ );
- };
- const checked = requireModel(yield* registry.getProviders);
- yield* cwd === undefined
## apps/server/src/mcp/toolkits/project/tools.ts ##
@@ apps/server/src/mcp/toolkits/project/tools.ts: import {
@@ apps/server/src/orchestration-v2/testkit/fixtures/turn_interrupt/muse_transcript
{"type":"emit_inbound","label":"response:turn/interrupt","frame":{"jsonrpc":"2.0","id":4,"result":{"commandId":"01a11a6d-2f0b-7000-a1d4-359cf54e471a","status":"accepted","turnId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5"}}}
{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a11a6d-2d3d-7000-8178-411fdb90bc34","viewCursor":"v:01a11a6d-2d3d-7000-8178-411fdb90bc34:7","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-2d3d-7000-8178-411fdb90bc34"},"first":{"id":"ae604001-22b9-479c-a45b-3dcfed45996c","sequence":37},"last":{"id":"3962d8d1-4608-4dda-8fdc-39a1804474aa","sequence":50}},"item":{"itemId":"ae604001-22b9-479c-a45b-3dcfed45996c","kind":"reminderChild","turnId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5","revision":2,"status":"cancelled","recordedAt":"2026-10-08T07:32:05.727236Z","fallbackText":"Reminder child session","failureReason":"main run cancelled","childSessionId":"1f58196a-6bf6-42da-9499-8f53a439e6e1","reminderAgentId":"skill-reminder","generationId":1,"taskId":"01a11a6d-2f65-70b1-bb8f-69b33bb4fc62"}},"emittedAtMs":1791444725734}}
- ## apps/server/src/provider/agentContextBudget.json ##
-@@
- {
-- "claudeSystemAppendBytes": 6245,
-- "codexAdditionalContextBytes": 7639,
-- "mcpToolListJsonBytes": 61709
-+ "claudeSystemAppendBytes": 6295,
-+ "codexAdditionalContextBytes": 7689,
-+ "mcpToolListJsonBytes": 61951
- }
-
## packages/contracts/src/orchestratorMcp.test.ts ##
@@ packages/contracts/src/orchestratorMcp.test.ts: import * as Schema from "effect/Schema";
import {
13: c8076d1e4d ! 13: e6ca4e7bc2 feat(server): resume runs that failed on transient provider errors
@@ apps/web/src/components/sidebar/failedSessionsBanner.logic.ts (new)
## apps/web/src/i18n/translations/de.json ##
@@
- "33d18dda74f6d7b3": "Auto-Merge für Stack abbrechen",
- "012c67c7f1a99e33": "Auto-Merge für Stack",
+ "3ee30a50b70fffab": "Zurückgezogen von {by}: {reason}",
+ "92e129bf413a1220": "zurückgezogen",
"3d4448e3c061f894": "Anderer Rechner",
- "349587beaf00ce5e": "{title}, delegiert von {machine}, {count, plural, one {{count} Aufgabe} other {{count} Aufgaben}}"
+ "349587beaf00ce5e": "{title}, delegiert von {machine}, {count, plural, one {{count} Aufgabe} other {{count} Aufgaben}}",
@@ apps/web/src/i18n/translations/de.json
|
|
Full range-diff, part 2 of 2: range-diff part 2 ## apps/web/src/i18n/translations/en.json ##
@@
- "33d18dda74f6d7b3": "Cancel stack auto-merge",
- "012c67c7f1a99e33": "Auto-merge stack",
+ "3ee30a50b70fffab": "Withdrawn by {by}: {reason}",
+ "92e129bf413a1220": "withdrawn",
"3d4448e3c061f894": "Other machine",
- "349587beaf00ce5e": "{title}, delegated from {machine}, {count, plural, one {{count} task} other {{count} tasks}}"
+ "349587beaf00ce5e": "{title}, delegated from {machine}, {count, plural, one {{count} task} other {{count} tasks}}",
@@ apps/web/src/i18n/translations/en.json
## apps/web/src/i18n/translations/es.json ##
@@
- "33d18dda74f6d7b3": "Cancelar la fusión automática de la pila",
- "012c67c7f1a99e33": "Fusión automática de la pila",
+ "3ee30a50b70fffab": "Retirada por {by}: {reason}",
+ "92e129bf413a1220": "retirada",
"3d4448e3c061f894": "Otra máquina",
- "349587beaf00ce5e": "{title}, delegado desde {machine}, {count, plural, one {{count} tarea} other {{count} tareas}}"
+ "349587beaf00ce5e": "{title}, delegado desde {machine}, {count, plural, one {{count} tarea} other {{count} tareas}}",
@@ apps/web/src/i18n/translations/es.json
## apps/web/src/i18n/translations/fr.json ##
@@
- "33d18dda74f6d7b3": "Annuler la fusion automatique de la pile",
- "012c67c7f1a99e33": "Fusion automatique de la pile",
+ "3ee30a50b70fffab": "Retirée par {by} : {reason}",
+ "92e129bf413a1220": "retirée",
"3d4448e3c061f894": "Autre machine",
- "349587beaf00ce5e": "{title}, délégué depuis {machine}, {count, plural, one {{count} tâche} other {{count} tâches}}"
+ "349587beaf00ce5e": "{title}, délégué depuis {machine}, {count, plural, one {{count} tâche} other {{count} tâches}}",
@@ apps/web/src/i18n/translations/fr.json
## apps/web/src/i18n/translations/ja.json ##
@@
- "33d18dda74f6d7b3": "スタックの自動マージをキャンセル",
- "012c67c7f1a99e33": "スタックを自動マージ",
+ "3ee30a50b70fffab": "{by} が取り下げました: {reason}",
+ "92e129bf413a1220": "取り下げ済み",
"3d4448e3c061f894": "別のマシン",
- "349587beaf00ce5e": "{title}、{machine} から委任、{count, plural, other {{count} 件のタスク}}"
+ "349587beaf00ce5e": "{title}、{machine} から委任、{count, plural, other {{count} 件のタスク}}",
@@ apps/web/src/i18n/translations/ja.json
## apps/web/src/i18n/translations/ko.json ##
@@
- "33d18dda74f6d7b3": "스택 자동 병합 취소",
- "012c67c7f1a99e33": "스택 자동 병합",
+ "3ee30a50b70fffab": "{by}에서 철회했습니다: {reason}",
+ "92e129bf413a1220": "철회됨",
"3d4448e3c061f894": "다른 기기",
- "349587beaf00ce5e": "{title}, {machine}에서 위임됨, {count, plural, other {작업 {count}개}}"
+ "349587beaf00ce5e": "{title}, {machine}에서 위임됨, {count, plural, other {작업 {count}개}}",
@@ apps/web/src/i18n/translations/ko.json
## apps/web/src/i18n/translations/pt-BR.json ##
@@
- "33d18dda74f6d7b3": "Cancelar merge automático da pilha",
- "012c67c7f1a99e33": "Merge automático da pilha",
+ "3ee30a50b70fffab": "Retirada por {by}: {reason}",
+ "92e129bf413a1220": "retirada",
"3d4448e3c061f894": "Outra máquina",
- "349587beaf00ce5e": "{title}, delegado de {machine}, {count, plural, one {{count} tarefa} other {{count} tarefas}}"
+ "349587beaf00ce5e": "{title}, delegado de {machine}, {count, plural, one {{count} tarefa} other {{count} tarefas}}",
@@ apps/web/src/i18n/translations/pt-BR.json
## apps/web/src/i18n/translations/ru.json ##
@@
- "33d18dda74f6d7b3": "Отменить автослияние стека",
- "012c67c7f1a99e33": "Автослияние стека",
+ "3ee30a50b70fffab": "Отозван ({by}): {reason}",
+ "92e129bf413a1220": "отозван",
"3d4448e3c061f894": "Другой компьютер",
- "349587beaf00ce5e": "{title}, делегировано с {machine}, {count, plural, one {{count} задача} few {{count} задачи} many {{count} задач} other {{count} задачи}}"
+ "349587beaf00ce5e": "{title}, делегировано с {machine}, {count, plural, one {{count} задача} few {{count} задачи} many {{count} задач} other {{count} задачи}}",
@@ apps/web/src/i18n/translations/ru.json
## apps/web/src/i18n/translations/sv.json ##
@@
- "33d18dda74f6d7b3": "Avbryt automatisk merge för stacken",
- "012c67c7f1a99e33": "Merga stacken automatiskt",
+ "3ee30a50b70fffab": "Återkallad av {by}: {reason}",
+ "92e129bf413a1220": "återkallad",
"3d4448e3c061f894": "Annan dator",
- "349587beaf00ce5e": "{title}, delegerad från {machine}, {count, plural, one {{count} uppgift} other {{count} uppgifter}}"
+ "349587beaf00ce5e": "{title}, delegerad från {machine}, {count, plural, one {{count} uppgift} other {{count} uppgifter}}",
@@ apps/web/src/i18n/translations/sv.json
## apps/web/src/i18n/translations/zh.json ##
@@
- "33d18dda74f6d7b3": "取消堆叠自动合并",
- "012c67c7f1a99e33": "自动合并堆叠",
+ "3ee30a50b70fffab": "已由 {by} 撤回:{reason}",
+ "92e129bf413a1220": "已撤回",
"3d4448e3c061f894": "其他机器",
- "349587beaf00ce5e": "{title},由 {machine} 委派,{count, plural, other {{count} 个任务}}"
+ "349587beaf00ce5e": "{title},由 {machine} 委派,{count, plural, other {{count} 个任务}}",
14: b6094a0298 = 14: 9c446f5453 feat: project standing instructions and role models for delegated tasks
15: 3baf41f2d1 ! 15: dea96ea9cd feat(server): give each thread its own temp directory and an optional agent memory ceiling
@@ apps/server/src/storageCleanup.test.ts: import {
import * as ServerConfig from "./config.ts";
+import { threadTempDirectory } from "./process/agentScope.ts";
import * as StorageCleanup from "./storageCleanup.ts";
+ import * as CheckpointCaptureIndex from "./vcs/checkpointCaptureIndex.ts";
import * as GitVcsDriver from "./vcs/GitVcsDriver.ts";
- import * as TaskFolders from "./workspace/TaskFolders.ts";
@@ apps/server/src/storageCleanup.test.ts: const cleanupFixture = (
),
getThreadShell: (threadId: ThreadId) =>
16: 5c8f14c328 ! 16: a9e8529304 feat(server): delegate_task runs a task in another project here and reports back
@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function*
+ : readTask(scope, taskId, false, true);
+ }
let workspaceStrategy: OrchestrationV2ThreadLaunchWorkspaceStrategy | undefined;
- if (input.isolation === "worktree" && !isRetryOfAcceptedDelegation) {
- const project = yield* requireProject(parent.thread.projectId);
+ if (
+ input.isolation === "worktree" &&
@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function* () {
),
),
@@ apps/server/src/peer/RemoteDelegation.ts: const make = Effect.gen(function* () {
/** A defect, logged, as a failure, so a retry covers it. */
- ## apps/server/src/provider/agentContextBudget.json ##
-@@
- {
- "claudeSystemAppendBytes": 6295,
- "codexAdditionalContextBytes": 7689,
-- "mcpToolListJsonBytes": 61951
-+ "mcpToolListJsonBytes": 62055
- }
-
## packages/client-runtime/src/state/threadShell.test.ts ##
@@ packages/client-runtime/src/state/threadShell.test.ts: describe("v2 thread shell lists", () => {
.get(threads.navigationThreadShellsAtom)
17: 6cef726077 = 17: 9f919da220 fix: transient retries count across the continuation chain; banner names environments
18: 2251d716f6 = 18: 5b24258345 fix(server): a declined transient try no longer blocks its run's continuation
19: 6a138a2ed4 = 19: 7f62780af1 feat(mobile): edit standing instructions, provider error resume and agent memory ceiling
20: b4b34c6ef0 ! 20: 7b8e645e4b fix(server): delegated children hold their completion on background commands they left running
@@ apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts: export const makeCo
yield* emitMcpStartupFailures(context);
return context;
});
+@@ apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts: export const makeCodexAdapterV2 = Effect.fn("makeCodexAdapterV2")(function* (
+ new Set([...(current.get(nativeTurnId) ?? []), ...exited]),
+ ),
+ );
++ if (context.subagent === null) yield* syncRetainedCommandRoster(nativeThreadId);
+ }),
+ );
+ },
@@ apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts: export const makeCodexAdapterV2 = Effect.fn("makeCodexAdapterV2")(function* (
});
yield* releaseSettledTurnIfIdle(context.nativeTurnId);
@@ apps/server/src/orchestration-v2/ThreadManagementService.ts: export class Thread
case "failed":
return "Failed to update the awaited background work.";
- case "unmatched":
-- return "None of these IDs is running background work on this thread, so this request registers no wait for them. If the task already finished, read its output now. Otherwise pass the task ID of a background command or Monitor you started. Subagent, Agent tool, and delegate_task IDs don't go here.";
+- return "None of these IDs is running background work on this thread, so this request registers no wait for them. If the task already finished, read its output now. Otherwise pass the task ID of a background command or Monitor you started. Subagent, Agent tool, and Workflow runs already keep the thread working until they finish, and delegate_task IDs don't go here either.";
+ case "unmatched": {
+ const running = this.runningTaskIds ?? [];
-+ return `None of these IDs is running background work on this thread, so this request registers no wait for them. If the task already finished, read its output now. ${
++ return `None of these IDs is running background work on this thread, so this request registers no wait for them. If the task already finished, read its output now. Otherwise pass the task ID of a background command or Monitor you started. ${
+ running.length === 0
+ ? "No background command or Monitor is running on this thread."
+ : `Running here: ${running.join(", ")}.`
-+ } Subagent, Agent tool, and delegate_task IDs don't go here.`;
++ } Subagent, Agent tool, and Workflow runs already keep the thread working until they finish, and delegate_task IDs don't go here either.`;
+ }
}
}
@@ apps/server/src/peer/RemoteDelegation.ts: const make = Effect.gen(function* () {
text: run === undefined ? text : withExecutedModelNote(text, run.model, run.executedModel),
executedModel,
- ## apps/server/src/provider/agentContextBudget.json ##
-@@
- {
- "claudeSystemAppendBytes": 6295,
- "codexAdditionalContextBytes": 7689,
-- "mcpToolListJsonBytes": 62055
-+ "mcpToolListJsonBytes": 62072
- }
-
## docs/orchestration-v2/orchestrator-mcp-server.md (new) ##
@@
+# Orchestrator MCP Server
21: 104d60a660 = 21: 9fc06a9746 fix(mobile): settings text drafts survive failed saves and never overwrite a changed value
22: 1d5ed764e9 ! 22: 81801b01b0 feat: one call and one strip show a lead's whole fleet
@@ apps/server/src/peer/RemoteDelegation.test.ts: it.effect("a task in this thread'
+ ).pipe(Effect.provide(NodeHttpServer.layerTest)),
+);
- ## apps/server/src/provider/agentContextBudget.json ##
-@@
- {
- "claudeSystemAppendBytes": 6295,
- "codexAdditionalContextBytes": 7689,
-- "mcpToolListJsonBytes": 62072
-+ "mcpToolListJsonBytes": 62455
- }
-
## apps/web/src/components/ChatView.tsx ##
@@ apps/web/src/components/ChatView.tsx: import { thrownErrorMessage } from "@t3tools/client-runtime/errors";
import { useGT, useMessages } from "gt-react";
23: f41eefc432 = 23: 408573ff62 fix(server): a task delegated to another project uses that project's role models
24: 0ac40828a4 ! 24: 3bede22b3a feat(mobile): a thread with children shows its fleet strip above the composer
@@ apps/mobile/src/features/threads/ThreadFleetStrip.tsx (new)
## apps/mobile/src/i18n/translations/de.json ##
@@
- "892f08d21b8e48a9": "{layers} per {kind, select, squash {Squash} merge {Merge} rebase {Rebase} fastForward {Fast-Forward} other {{method}}} in {base} mergen, sobald die Anforderungen erfüllt sind. Das kann sofort passieren.",
+ "201490988858b511": "zurückgezogen von {by}",
"3d4448e3c061f894": "Anderer Rechner",
"349587beaf00ce5e": "{title}, delegiert von {machine}, {count, plural, one {{count} Aufgabe} other {{count} Aufgaben}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} Aufgabe} other {{count} Aufgaben}}"
@@ apps/mobile/src/i18n/translations/de.json
## apps/mobile/src/i18n/translations/en.json ##
@@
- "892f08d21b8e48a9": "Merge {layers} into {base} using {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} once their requirements are met. This may happen immediately.",
+ "201490988858b511": "withdrawn by {by}",
"3d4448e3c061f894": "Other machine",
"349587beaf00ce5e": "{title}, delegated from {machine}, {count, plural, one {{count} task} other {{count} tasks}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} task} other {{count} tasks}}"
@@ apps/mobile/src/i18n/translations/en.json
## apps/mobile/src/i18n/translations/es.json ##
@@
- "892f08d21b8e48a9": "Fusionar {layers} en {base} con {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} cuando se cumplan sus requisitos. Puede ocurrir de inmediato.",
+ "201490988858b511": "retirada por {by}",
"3d4448e3c061f894": "Otra máquina",
"349587beaf00ce5e": "{title}, delegado desde {machine}, {count, plural, one {{count} tarea} other {{count} tareas}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} tarea} other {{count} tareas}}"
@@ apps/mobile/src/i18n/translations/es.json
## apps/mobile/src/i18n/translations/fr.json ##
@@
- "892f08d21b8e48a9": "Fusionner {layers} dans {base} avec {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} dès que leurs conditions sont remplies. Cela peut se produire immédiatement.",
+ "201490988858b511": "retirée par {by}",
"3d4448e3c061f894": "Autre machine",
"349587beaf00ce5e": "{title}, délégué depuis {machine}, {count, plural, one {{count} tâche} other {{count} tâches}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} tâche} other {{count} tâches}}"
@@ apps/mobile/src/i18n/translations/fr.json
## apps/mobile/src/i18n/translations/ja.json ##
@@
- "892f08d21b8e48a9": "要件が満たされたら、{layers} を{kind, select, squash {スカッシュ} merge {マージ} rebase {リベース} fastForward {早送り} other {{method}}}で {base} にマージします。すぐにマージされる場合があります。",
+ "201490988858b511": "{by} が取り下げ",
"3d4448e3c061f894": "別のマシン",
"349587beaf00ce5e": "{title}、{machine} から委任、{count, plural, other {{count} 件のタスク}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, other {{count} 件のタスク}}"
@@ apps/mobile/src/i18n/translations/ja.json
## apps/mobile/src/i18n/translations/ko.json ##
@@
- "892f08d21b8e48a9": "요구 사항이 충족되면 {layers}을(를) {kind, select, squash {스쿼시} merge {병합} rebase {리베이스} fastForward {빨리 감기} other {{method}}} 방식으로 {base}에 병합합니다. 바로 병합될 수도 있습니다.",
+ "201490988858b511": "{by}에서 철회함",
"3d4448e3c061f894": "다른 기기",
"349587beaf00ce5e": "{title}, {machine}에서 위임됨, {count, plural, other {작업 {count}개}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, other {작업 {count}개}}"
@@ apps/mobile/src/i18n/translations/ko.json
## apps/mobile/src/i18n/translations/pt-BR.json ##
@@
- "892f08d21b8e48a9": "Mesclar {layers} em {base} usando {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} quando os requisitos forem atendidos. Isso pode acontecer imediatamente.",
+ "201490988858b511": "retirada por {by}",
"3d4448e3c061f894": "Outra máquina",
"349587beaf00ce5e": "{title}, delegado de {machine}, {count, plural, one {{count} tarefa} other {{count} tarefas}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} tarefa} other {{count} tarefas}}"
@@ apps/mobile/src/i18n/translations/pt-BR.json
## apps/mobile/src/i18n/translations/ru.json ##
@@
- "892f08d21b8e48a9": "Слить {layers} в {base} методом {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}}, когда будут выполнены требования. Это может произойти сразу.",
+ "201490988858b511": "отозван: {by}",
"3d4448e3c061f894": "Другой компьютер",
"349587beaf00ce5e": "{title}, делегировано с {machine}, {count, plural, one {{count} задача} few {{count} задачи} many {{count} задач} other {{count} задачи}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} задача} few {{count} задачи} many {{count} задач} other {{count} задачи}}"
@@ apps/mobile/src/i18n/translations/ru.json
## apps/mobile/src/i18n/translations/sv.json ##
@@
- "892f08d21b8e48a9": "Merga {layers} in i {base} med {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} när kraven är uppfyllda. Det kan ske direkt.",
+ "201490988858b511": "återkallad av {by}",
"3d4448e3c061f894": "Annan dator",
"349587beaf00ce5e": "{title}, delegerad från {machine}, {count, plural, one {{count} uppgift} other {{count} uppgifter}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} uppgift} other {{count} uppgifter}}"
@@ apps/mobile/src/i18n/translations/sv.json
## apps/mobile/src/i18n/translations/zh.json ##
@@
- "892f08d21b8e48a9": "满足要求时使用{kind, select, squash {压缩合并} merge {合并} rebase {变基} fastForward {快进} other {{method}}}方式将 {layers} 合并到 {base}。这可能会立即发生。",
+ "201490988858b511": "已由 {by} 撤回",
"3d4448e3c061f894": "其他机器",
"349587beaf00ce5e": "{title},由 {machine} 委派,{count, plural, other {{count} 个任务}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, other {{count} 个任务}}"
@@ apps/mobile/vite.config.ts: const reactTests = [
"src/features/threads/UsageLimitRecoveryCard.test.tsx",
+ "src/features/threads/ThreadFleetStrip.test.tsx",
"src/features/threads/PendingUserInputCard.test.tsx",
+ "src/features/threads/HtmlRenderWebView.test.tsx",
"src/features/threads/NewTaskDraftRouteScreen.test.tsx",
- "src/native/NativeHeaderToolbar.test.tsx",
25: 3618eddcfa = 25: abc855e59a feat(server): agent credit lines are removed from PR descriptions when the project asks
26: d0fd4e1c58 = 26: 6cfc32c2e9 feat(server): mask secrets that reach command and tool output
27: cd7b6db0e5 = 27: d4e7fda5a6 feat(mobile): secret masking in tool output can be turned off and on from Maintenance
28: 1fcc2e9790 ! 28: ad0c61b65c feat(server): waits hear the caller's messages and corrections expire with their turn
@@ apps/server/src/peer/RemoteDelegation.ts: const make = Effect.gen(function* () {
runtimeMode: parentModes.runtimeMode,
interactionMode: parentModes.interactionMode,
- ## apps/server/src/provider/agentContextBudget.json ##
-@@
- {
- "claudeSystemAppendBytes": 6295,
- "codexAdditionalContextBytes": 7689,
-- "mcpToolListJsonBytes": 62455
-+ "mcpToolListJsonBytes": 62787
- }
-
## apps/server/src/relay/AgentAwarenessRelay.test.ts ##
@@ apps/server/src/relay/AgentAwarenessRelay.test.ts: const makeTestRelay = Effect.fnUntraced(function* (
isProviderInstanceEnabledForProject: unused,
29: f1f92154eb ! 29: a0392d7ef7 feat(server): a delegated task's approval wakes the thread that started it, which can answer it
@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function*
+ ).pipe(reportSteppedDown);
}
let workspaceStrategy: OrchestrationV2ThreadLaunchWorkspaceStrategy | undefined;
- if (input.isolation === "worktree" && !isRetryOfAcceptedDelegation) {
+ if (
@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function* () {
runId: childRunEvent.event.payload.id,
});
@@ apps/server/src/peer/RemoteDelegation.ts: const make = Effect.gen(function* () {
),
);
- ## apps/server/src/provider/agentContextBudget.json ##
-@@
- {
- "claudeSystemAppendBytes": 6295,
- "codexAdditionalContextBytes": 7689,
-- "mcpToolListJsonBytes": 62787
-+ "mcpToolListJsonBytes": 63109
- }
-
## docs/orchestration-v2/orchestrator-mcp-server.md ##
@@ docs/orchestration-v2/orchestrator-mcp-server.md: child would ask for approval on every command. `orchestrator_capabilities`
lists `runtimeModes` only for a provider that offers some of the modes, and
30: 0409a827cb = 30: 6213598fd2 fix(server): model settings an agent passes are refused, never silently dropped
31: 02c722d92d = 31: ac100a02a4 fix(server): a wait on a delegated task ends when its command hold runs out
32: 7c73069ff8 = 32: 8789168e1f fix(server): create_threads and project defaults refuse model settings they would drop
33: a0de363f3a = 33: fabd183475 refactor(server): only a wait on delegated work keeps a command hold timer
34: 5a25d9186e ! 34: 9798c85eec feat(server): a task delegated to another environment can run in its own worktree there
@@ apps/server/src/peer/http.ts: export const layer = HttpApiBuilder.group(
}),
);
- ## apps/server/src/provider/agentContextBudget.json ##
-@@
- {
- "claudeSystemAppendBytes": 6295,
- "codexAdditionalContextBytes": 7689,
-- "mcpToolListJsonBytes": 63109
-+ "mcpToolListJsonBytes": 63226
- }
-
## apps/server/src/server.ts ##
@@ apps/server/src/server.ts: import * as PeerForwarding from "./peer/PeerForwarding.ts";
import * as RemoteDelegation from "./peer/RemoteDelegation.ts";
35: a9ceac7dc5 = 35: 9393dfed0a fix(server): Codex full access keeps asking when its own plugins or apps need an answer
36: 2b891df315 ! 36: af8b4f51fd feat(server): ACP threads list their running terminals as background commands
@@ packages/provider-acp/src/server/adapter.ts: export const makeAcpAdapterV2 = Eff
+ ...(sessionScoped ? { sessionScoped: true } : {}),
+ });
+ });
- let scheduleDeferredFinalize: (context: ActiveAcpTurn) => Effect.Effect<void> = () =>
- Effect.void;
- let refreshModelSwitchCapability: Effect.Effect<void> = Effect.void;
+ const withModelContextWindow = Effect.fnUntraced(function* (
+ sessionId: string,
+ usage: ThreadTokenUsageSnapshot,
@@ packages/provider-acp/src/server/adapter.ts: export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
? notePromptProgress()
: Effect.void,
37: 82919f193d ! 37: 34d69e360e fix(server): fork-only indexes no longer take upstream migration ids
@@ apps/server/src/orchestration-v2/ProjectionStore.ts: export const layer: Layer.L
json_extract(failure.payload_json, '$.failure.retryable') = 1
## apps/server/src/persistence/Migrations.test.ts ##
-@@ apps/server/src/persistence/Migrations.test.ts: import * as FileSystem from "effect/FileSystem";
- import * as Path from "effect/Path";
- import * as SqlClient from "effect/sql/SqlClient";
+@@ apps/server/src/persistence/Migrations.test.ts: import {
+ } from "@t3tools/shared/databaseMigrationLog";
+ import * as DatabaseMigrationProgress from "./DatabaseMigrationProgress.ts";
-import { migrationManifest, runMigrations } from "./Migrations.ts";
+import { hasPendingMigrations, migrationManifest, runMigrations } from "./Migrations.ts";
@@ apps/server/src/persistence/Migrations.test.ts: describe("runMigrations", () =>
const sql = yield* SqlClient.SqlClient;
## apps/server/src/persistence/Migrations.ts ##
-@@ apps/server/src/persistence/Migrations.ts: import Migration0108 from "./Migrations/108_AgentFeedback.ts";
- import Migration0109 from "./Migrations/109_IssueTrackerAccounts.ts";
- import Migration0110 from "./Migrations/110_Workflows.ts";
- import Migration0111 from "./Migrations/111_SupersededRunAttemptIndex.ts";
+@@ apps/server/src/persistence/Migrations.ts: import Migration0114 from "./Migrations/114_WorkflowRunIndexes.ts";
+ import Migration0115 from "./Migrations/115_WorkflowRunTags.ts";
+ import Migration0116 from "./Migrations/116_ForkHistoryMembership.ts";
+ import Migration0117 from "./Migrations/117_WorkflowMailSender.ts";
+import {
+ applyForkIndexes,
+ forgetForkLedgerRows,
@@ apps/server/src/persistence/Migrations.ts: export const runMigrations = Effect.f
yield* assertV2MigrationsCanRun(toMigrationInclusive);
}
@@ apps/server/src/persistence/Migrations.ts: export const runMigrations = Effect.fn("runMigrations")(function* ({
- }
- executedMigrations.push(...(yield* run({ loader: makeMigrationLoader(id) })));
- }
+ }).pipe(
+ Effect.ensuring(Option.isSome(progress) ? Ref.set(progress.value.current, null) : Effect.void),
+ );
- const migrations = executedMigrations.map(([id, name]) => `${id}_${name}`);
+ const forkIndexChanges =
+ hasPending && (toMigrationInclusive === undefined || toMigrationInclusive >= latestMigrationId)
38: 6e7487aaed = 38: b307632bb4 docs: describe the fork and its upstream nightly sync
39: 591bb12ea7 ! 39: b6e263bc87 test(server): guard the fork's migration ids and desktop update feed
@@ apps/server/src/persistence/upstreamMigrations.json (new)
+ "108_AgentFeedback.ts": "6ea69fb60d2694b437451b1773cbda2d4bd3423d",
+ "109_IssueTrackerAccounts.ts": "8a87776600e9a08fc56ad9310204d16c8c223000",
+ "110_Workflows.ts": "39f588a564057e6d1567fd94d56f9e56793b7985",
-+ "111_SupersededRunAttemptIndex.ts": "ad2f9f4a3817e79a268f47462d28d6824554f2ab"
++ "111_SupersededRunAttemptIndex.ts": "ad2f9f4a3817e79a268f47462d28d6824554f2ab",
++ "112_LayoutCommandApprovals.ts": "27f00765c42cec72e114567ece0004b6983f41b8",
++ "113_WorkflowSkippedRuns.ts": "8aa8c4b673b7cf0e6f79502990a8542797b50089",
++ "114_WorkflowRunIndexes.ts": "42cc0c7ce5a718665eacc24857d999c5fdd93d9b",
++ "115_WorkflowRunTags.ts": "ba14165eccac0695261156c913417f225ab2bfa8",
++ "116_ForkHistoryMembership.ts": "b982de1530b3ccf4ad2e0a9e71a6a05ab6b4b50e",
++ "117_WorkflowMailSender.ts": "7183d31e564ec7f7ea9cb824a2f29232a118fdf1"
+}
## apps/server/src/persistence/upstreamMigrations.test.ts (new) ##
40: 2c53095de2 = 40: c47960eb76 docs: regenerate the upstream migration manifest in each sync
41: a00e2dfd27 ! 41: 7394f4b4cb fix(server): fork code reads upstream's forward thread scan and new migration head
@@ apps/server/src/peer/RemoteDelegation.ts: const make = Effect.gen(function* () {
read.thread.worktreePath === null
## apps/server/src/persistence/Migrations.test.ts ##
-@@ apps/server/src/persistence/Migrations.test.ts: import * as Path from "effect/Path";
- import * as SqlClient from "effect/sql/SqlClient";
+@@ apps/server/src/persistence/Migrations.test.ts: import {
+ import * as DatabaseMigrationProgress from "./DatabaseMigrationProgress.ts";
import { hasPendingMigrations, migrationManifest, runMigrations } from "./Migrations.ts";
+import { applyForkIndexes } from "./Migrations/ForkIndexes.ts";
42: c752a26a43 ! 42: 3b28d3e1f8 feat: scheduled tasks take full options everywhere and never overlap runs
@@ apps/server/src/mcp/OrchestratorMcpService.test.ts: import * as DateTime from "e
import * as Deferred from "effect/Deferred";
import * as Duration from "effect/Duration";
import * as Effect from "effect/Effect";
-+import * as FileSystem from "effect/FileSystem";
- import * as Fiber from "effect/Fiber";
+-import * as Fiber from "effect/Fiber";
+ import * as FileSystem from "effect/FileSystem";
++import * as Fiber from "effect/Fiber";
import * as Layer from "effect/Layer";
import * as Option from "effect/Option";
+ import * as Queue from "effect/Queue";
@@ apps/server/src/mcp/OrchestratorMcpService.test.ts: describe("OrchestratorMcpService provider resolution", () => {
defaults: {
readonly project: ScheduledTask["modelSelection"] | null;
@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function*
+ `Provider instance ${selection.instanceId} is not configured here. orchestrator_capabilities lists providers and models.`,
+ );
+ yield* requireAdvertisedModel(provider, selection.model);
-+ yield* requireAdvertisedOptions(provider, selection.model, selection.options);
++ yield* validateModelOptions(provider, selection.model, selection.options);
+ },
+ );
+
@@ apps/server/src/persistence/Migrations/ForkIndexes.ts: export const applyForkInd
+ return [...created, ...addedColumns];
});
- ## apps/server/src/provider/agentContextBudget.json ##
-@@
- {
- "claudeSystemAppendBytes": 6295,
- "codexAdditionalContextBytes": 7689,
-- "mcpToolListJsonBytes": 63226
-+ "mcpToolListJsonBytes": 64072
- }
-
## apps/server/src/scheduledTasks/ScheduledTaskService.interval.test.ts ##
@@
import * as NodeCrypto from "@effect/platform-node/NodeCrypto";
43: 91a74cf98b = 43: d787cc8f45 test(server): the numbered-head ledger case starts from upstream's full head
44: 78d467cda3 ! 44: 33ab058203 feat(server): scheduled tasks can run an owner-set gate command before each run
@@ apps/server/src/policy/ManagedPolicy.ts: export const loadedPolicy = Effect.fn("
*/
export function deniedBy(
policy: Pick<ManagedPolicy["Service"], "document">,
-- capability: "webhookTasks" | "telemetry" | "previewTunnel",
-+ capability: "webhookTasks" | "taskGates" | "telemetry" | "previewTunnel",
+- capability: "webhookTasks" | "telemetry" | "previewTunnel" | "worktreeLayoutCommands",
++ capability:
++ | "webhookTasks"
++ | "taskGates"
++ | "telemetry"
++ | "previewTunnel"
++ | "worktreeLayoutCommands",
): string | undefined {
return policy.document?.limits?.[capability] === false ? policy.document.organization : undefined;
}
@@ apps/server/src/policy/policyTemplates.ts: const policies = (): ReadonlyArray<Po
## apps/server/src/provider/agentContextBudget.json ##
@@
{
- "claudeSystemAppendBytes": 6295,
- "codexAdditionalContextBytes": 7689,
-- "mcpToolListJsonBytes": 64072
-+ "mcpToolListJsonBytes": 64082
+- "claudeSystemAppendBytes": 6245,
+- "codexAdditionalContextBytes": 7639,
+- "mcpToolListJsonBytes": 62055
++ "claudeSystemAppendBytes": 6295,
++ "codexAdditionalContextBytes": 7689,
++ "mcpToolListJsonBytes": 64428
}
## apps/server/src/scheduledTasks/ScheduledTaskService.gate.test.ts (new) ##
@@ packages/contracts/src/managedPolicy.ts: const CAPABILITY_LABELS = {
+ taskGates: "scheduled task gate commands",
browserCookieImport: "importing browser cookies",
previewTunnel: "opening this machine's local servers on other devices",
- } as const;
+ worktreeLayoutCommands: "project worktree layout commands",
## packages/contracts/src/orchestratorMcp.ts ##
@@ packages/contracts/src/orchestratorMcp.ts: export const OrchestratorMcpScheduleTaskInput = Schema.Struct({
45: b9c827506e ! 45: fab70bc0b2 feat(server): trim bulky payloads to keep the state database small
@@ apps/server/src/orchestration-v2/EventSink.ts: const layerBase: Layer.Layer<
.pipe(Effect.map((payload) => ({ ...event, payload })))
## apps/server/src/orchestration-v2/ProjectionMaintenance.test.ts ##
-@@
- import { assert, it } from "@effect/vitest";
- import {
- EventId,
-+ MessageId,
- NodeId,
- PlanId,
- type OrchestrationV2AppThread,
@@ apps/server/src/orchestration-v2/ProjectionMaintenance.test.ts: import * as EventSink from "./EventSink.ts";
import * as EventStore from "./EventStore.ts";
import * as ProjectionMaintenance from "./ProjectionMaintenance.ts";
@@ apps/server/src/orchestration-v2/ProjectionMaintenance.test.ts: const layerTest
);
const providerInstanceId = ProviderInstanceId.make("codex");
-@@ apps/server/src/orchestration-v2/ProjectionMaintenance.test.ts: it.effect("keeps an anchor that a row appended during the pass borrows from", ()
- }),
- ).pipe(Effect.provide(layerTest)),
+@@ apps/server/src/orchestration-v2/ProjectionMaintenance.test.ts: it.effect("an interrupted purge leaves a stream that still decodes", () =>
+ assert.equal(Array.from(stream).at(-1)?.event.type, "thread.deleted");
+ }).pipe(Effect.provide(layerTest)),
);
+
+function retentionItems(
@@ apps/server/src/orchestration-v2/ProjectionMaintenance.ts: import {
export class ProjectionMaintenanceError extends Schema.TaggedError<ProjectionMaintenanceError>()(
"ProjectionMaintenanceError",
@@ apps/server/src/orchestration-v2/ProjectionMaintenance.ts: export interface ProjectionMaintenanceV2Shape {
- },
- ProjectionMaintenanceError
- >;
+ readonly purgeDeletedThread: (
+ threadId: ThreadId,
+ ) => Effect.Effect<number, ProjectionMaintenanceError>;
+ /**
+ * Truncates long command output written before truncation existed, then drops the tool
+ * details of threads archived longer than the retention. Messages and thread rows stay.
@@ apps/server/src/orchestration-v2/ProjectionMaintenance.ts: export interface Proj
}
export class ProjectionMaintenanceV2 extends Context.Service<
-@@ apps/server/src/orchestration-v2/ProjectionMaintenance.ts: const RETAINED_EVENT_HISTORY = Duration.days(1);
- const PAGE_SIZE = 50;
- const REFERENCE_SCAN_WINDOW = 1000;
+@@ apps/server/src/orchestration-v2/ProjectionMaintenance.ts: export const DELETED_THREAD_CONTENT_TABLES = [
+ "projection_thread_messages",
+ ] as const;
+// An archived thread keeps its conversation; its tool details go once it stays archived this long.
+const ARCHIVED_DETAIL_RETENTION = Duration.days(14);
@@ apps/server/src/orchestration-v2/ProjectionMaintenance.ts: export const layer: L
),
);
-- return ProjectionMaintenanceV2.of({ pruneEventStore });
+- return ProjectionMaintenanceV2.of({ pruneEventStore, purgeDeletedThread });
+ // A malformed row must not fail the whole pass: json_extract raises on invalid JSON.
+ const longOutput = sql`CASE WHEN json_valid(payload_json) THEN
+ json_type(payload_json, '$.output') = 'text'
@@ apps/server/src/orchestration-v2/ProjectionMaintenance.ts: export const layer: L
+ ),
+ );
+
-+ return ProjectionMaintenanceV2.of({ pruneEventStore, trimPayloads });
++ return ProjectionMaintenanceV2.of({ pruneEventStore, purgeDeletedThread, trimPayloads });
}),
);
@@ apps/server/src/orchestration-v2/payloadRetention.ts (new)
## apps/server/src/persistence/DatabaseStorage.test.ts ##
@@ apps/server/src/persistence/DatabaseStorage.test.ts: const compactionLayer = (
- Layer.provide(
Layer.succeed(ProjectionMaintenance.ProjectionMaintenanceV2, {
pruneEventStore,
+ purgeDeletedThread: () => Effect.succeed(0),
+ trimPayloads: () =>
+ Effect.succeed({ truncatedOutputCount: 0, trimmedThreadCount: 0, trimmedItemCount: 0 }),
}),
@@ apps/server/src/persistence/DatabaseStorage.ts: const make = Effect.gen(function
+ yield* reclaimPages(Number.POSITIVE_INFINITY, Effect.andThen(Effect.yieldNow, betweenPages));
const completedAt = yield* Clock.currentTimeMillis;
yield* fs.writeFileString(compactedAtPath, String(completedAt)).pipe(Effect.ignore);
-- if (result.deletedEventCount > 0 || result.deletedReceiptCount > 0) {
-- yield* Effect.logInfo("Compacted orchestration history", result);
-+ if (
+ if (
+ trimmed.truncatedOutputCount > 0 ||
+ trimmed.trimmedItemCount > 0 ||
-+ result.deletedEventCount > 0 ||
-+ result.deletedReceiptCount > 0
-+ ) {
+ result.deletedEventCount > 0 ||
+ result.deletedReceiptCount > 0 ||
+ result.purgedRowCount > 0
+ ) {
+- yield* Effect.logInfo("Compacted orchestration history", result);
+ yield* Effect.logInfo("Compacted orchestration history", { ...trimmed, ...result });
}
}).pipe(
46: b180f1dc7c = 46: cfd95f4908 docs: sync upstream nightlies by rebasing the fork's commits
47: 03adf152a9 = 47: 8aee74e307 docs: fork syncs land on main through fork-land |
|
Cross-family review: 8aee74e mergeable after fixes P1 (blocking)1.
|
8aee74e to
57c8591
Compare
|
Fix-round range-diff, part 1 of 3: range-diff part 1 1: ac39d7f757 = 1: 1632433305 fix(server): treat a delegated task like a subagent for background work
2: 00fb98dd3e = 2: 56a996e744 fix(server): delegated tasks notify only when they wait on the user
3: cd581ab4a1 = 3: d2c4dcbfa3 fix(client): pickers and announcer leave out delegated tasks shown under a parent
4: f1e8916567 ! 4: 7e9f30c202 feat(client): group delegated tasks under their parent when its machine is not connected
@@ apps/mobile/src/features/threads/useThreadListV2.ts: export function useThreadLi
## apps/mobile/src/i18n/translations/de.json ##
@@
- "8d545d54c0a9e950": "Die Befehle, Bearbeitungen und Suchen ausblenden, die Agenten ausführen. „Erfolgreiche ausblenden“ behält Fehler. „Zen“ zeigt nur endgültige Antworten. Genehmigungen, Fragen und Fehler werden immer angezeigt.",
- "99d51127f573296b": "Weiteres Konto",
- "8ec2c57414669b79": "Verbinde einen zweiten {tracker}-Workspace oder -Nutzer.",
-- "892f08d21b8e48a9": "{layers} per {kind, select, squash {Squash} merge {Merge} rebase {Rebase} fastForward {Fast-Forward} other {{method}}} in {base} mergen, sobald die Anforderungen erfüllt sind. Das kann sofort passieren."
-+ "892f08d21b8e48a9": "{layers} per {kind, select, squash {Squash} merge {Merge} rebase {Rebase} fastForward {Fast-Forward} other {{method}}} in {base} mergen, sobald die Anforderungen erfüllt sind. Das kann sofort passieren.",
+ "1a1beecff68a6e61": "Google-Konto bestätigen",
+ "99451a5d2d40440f": "Zurückgezogen von {by}.",
+ "3ee30a50b70fffab": "Zurückgezogen von {by}: {reason}",
+- "201490988858b511": "zurückgezogen von {by}"
++ "201490988858b511": "zurückgezogen von {by}",
+ "3d4448e3c061f894": "Anderer Rechner",
+ "349587beaf00ce5e": "{title}, delegiert von {machine}, {count, plural, one {{count} Aufgabe} other {{count} Aufgaben}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} Aufgabe} other {{count} Aufgaben}}"
@@ apps/mobile/src/i18n/translations/de.json
## apps/mobile/src/i18n/translations/en.json ##
@@
- "8d545d54c0a9e950": "Hide the commands, edits, and searches agents run. Hide successful keeps failures. Zen shows only final answers. Approvals, questions, and errors always show.",
- "99d51127f573296b": "Another account",
- "8ec2c57414669b79": "Connect a second {tracker} workspace or user.",
-- "892f08d21b8e48a9": "Merge {layers} into {base} using {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} once their requirements are met. This may happen immediately."
-+ "892f08d21b8e48a9": "Merge {layers} into {base} using {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} once their requirements are met. This may happen immediately.",
+ "1a1beecff68a6e61": "Verify Google account",
+ "99451a5d2d40440f": "Withdrawn by {by}.",
+ "3ee30a50b70fffab": "Withdrawn by {by}: {reason}",
+- "201490988858b511": "withdrawn by {by}"
++ "201490988858b511": "withdrawn by {by}",
+ "3d4448e3c061f894": "Other machine",
+ "349587beaf00ce5e": "{title}, delegated from {machine}, {count, plural, one {{count} task} other {{count} tasks}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} task} other {{count} tasks}}"
@@ apps/mobile/src/i18n/translations/en.json
## apps/mobile/src/i18n/translations/es.json ##
@@
- "8d545d54c0a9e950": "Oculta los comandos, ediciones y búsquedas que ejecutan los agentes. Ocultar las correctas mantiene los fallos. Zen solo muestra las respuestas finales. Las aprobaciones, preguntas y errores siempre se muestran.",
- "99d51127f573296b": "Otra cuenta",
- "8ec2c57414669b79": "Conecta un segundo espacio de trabajo o usuario de {tracker}.",
-- "892f08d21b8e48a9": "Fusionar {layers} en {base} con {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} cuando se cumplan sus requisitos. Puede ocurrir de inmediato."
-+ "892f08d21b8e48a9": "Fusionar {layers} en {base} con {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} cuando se cumplan sus requisitos. Puede ocurrir de inmediato.",
+ "1a1beecff68a6e61": "Verificar cuenta de Google",
+ "99451a5d2d40440f": "Retirada por {by}.",
+ "3ee30a50b70fffab": "Retirada por {by}: {reason}",
+- "201490988858b511": "retirada por {by}"
++ "201490988858b511": "retirada por {by}",
+ "3d4448e3c061f894": "Otra máquina",
+ "349587beaf00ce5e": "{title}, delegado desde {machine}, {count, plural, one {{count} tarea} other {{count} tareas}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} tarea} other {{count} tareas}}"
@@ apps/mobile/src/i18n/translations/es.json
## apps/mobile/src/i18n/translations/fr.json ##
@@
- "8d545d54c0a9e950": "Masque les commandes, modifications et recherches lancées par les agents. Masquer les réussis garde les échecs. Zen n’affiche que les réponses finales. Les approbations, questions et erreurs s’affichent toujours.",
- "99d51127f573296b": "Autre compte",
- "8ec2c57414669b79": "Connectez un second espace de travail ou utilisateur {tracker}.",
-- "892f08d21b8e48a9": "Fusionner {layers} dans {base} avec {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} dès que leurs conditions sont remplies. Cela peut se produire immédiatement."
-+ "892f08d21b8e48a9": "Fusionner {layers} dans {base} avec {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} dès que leurs conditions sont remplies. Cela peut se produire immédiatement.",
+ "1a1beecff68a6e61": "Vérifier le compte Google",
+ "99451a5d2d40440f": "Retirée par {by}.",
+ "3ee30a50b70fffab": "Retirée par {by} : {reason}",
+- "201490988858b511": "retirée par {by}"
++ "201490988858b511": "retirée par {by}",
+ "3d4448e3c061f894": "Autre machine",
+ "349587beaf00ce5e": "{title}, délégué depuis {machine}, {count, plural, one {{count} tâche} other {{count} tâches}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} tâche} other {{count} tâches}}"
@@ apps/mobile/src/i18n/translations/fr.json
## apps/mobile/src/i18n/translations/ja.json ##
@@
- "8d545d54c0a9e950": "エージェントが実行するコマンド、編集、検索を非表示にします。「成功したものを非表示」では失敗は表示されます。Zen では最終的な回答だけを表示します。承認、質問、エラーは常に表示されます。",
- "99d51127f573296b": "別のアカウント",
- "8ec2c57414669b79": "2つ目の {tracker} ワークスペースまたはユーザーを接続します。",
-- "892f08d21b8e48a9": "要件が満たされたら、{layers} を{kind, select, squash {スカッシュ} merge {マージ} rebase {リベース} fastForward {早送り} other {{method}}}で {base} にマージします。すぐにマージされる場合があります。"
-+ "892f08d21b8e48a9": "要件が満たされたら、{layers} を{kind, select, squash {スカッシュ} merge {マージ} rebase {リベース} fastForward {早送り} other {{method}}}で {base} にマージします。すぐにマージされる場合があります。",
+ "1a1beecff68a6e61": "Google アカウントを確認",
+ "99451a5d2d40440f": "{by} が取り下げました。",
+ "3ee30a50b70fffab": "{by} が取り下げました: {reason}",
+- "201490988858b511": "{by} が取り下げ"
++ "201490988858b511": "{by} が取り下げ",
+ "3d4448e3c061f894": "別のマシン",
+ "349587beaf00ce5e": "{title}、{machine} から委任、{count, plural, other {{count} 件のタスク}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, other {{count} 件のタスク}}"
@@ apps/mobile/src/i18n/translations/ja.json
## apps/mobile/src/i18n/translations/ko.json ##
@@
- "8d545d54c0a9e950": "에이전트가 실행하는 명령, 편집, 검색을 숨깁니다. 성공한 항목 숨기기는 실패를 남겨 둡니다. Zen은 최종 답변만 표시합니다. 승인, 질문, 오류는 항상 표시됩니다.",
- "99d51127f573296b": "다른 계정",
- "8ec2c57414669b79": "두 번째 {tracker} 워크스페이스 또는 사용자를 연결합니다.",
-- "892f08d21b8e48a9": "요구 사항이 충족되면 {layers}을(를) {kind, select, squash {스쿼시} merge {병합} rebase {리베이스} fastForward {빨리 감기} other {{method}}} 방식으로 {base}에 병합합니다. 바로 병합될 수도 있습니다."
-+ "892f08d21b8e48a9": "요구 사항이 충족되면 {layers}을(를) {kind, select, squash {스쿼시} merge {병합} rebase {리베이스} fastForward {빨리 감기} other {{method}}} 방식으로 {base}에 병합합니다. 바로 병합될 수도 있습니다.",
+ "1a1beecff68a6e61": "Google 계정 확인",
+ "99451a5d2d40440f": "{by}에서 철회했습니다.",
+ "3ee30a50b70fffab": "{by}에서 철회했습니다: {reason}",
+- "201490988858b511": "{by}에서 철회함"
++ "201490988858b511": "{by}에서 철회함",
+ "3d4448e3c061f894": "다른 기기",
+ "349587beaf00ce5e": "{title}, {machine}에서 위임됨, {count, plural, other {작업 {count}개}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, other {작업 {count}개}}"
@@ apps/mobile/src/i18n/translations/ko.json
## apps/mobile/src/i18n/translations/pt-BR.json ##
@@
- "8d545d54c0a9e950": "Oculta os comandos, edições e pesquisas que os agentes executam. \"Ocultar bem-sucedidas\" mantém as falhas. Zen mostra só as respostas finais. Aprovações, perguntas e erros sempre aparecem.",
- "99d51127f573296b": "Outra conta",
- "8ec2c57414669b79": "Conecte um segundo espaço de trabalho ou usuário do {tracker}.",
-- "892f08d21b8e48a9": "Mesclar {layers} em {base} usando {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} quando os requisitos forem atendidos. Isso pode acontecer imediatamente."
-+ "892f08d21b8e48a9": "Mesclar {layers} em {base} usando {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} quando os requisitos forem atendidos. Isso pode acontecer imediatamente.",
+ "1a1beecff68a6e61": "Verificar conta Google",
+ "99451a5d2d40440f": "Retirada por {by}.",
+ "3ee30a50b70fffab": "Retirada por {by}: {reason}",
+- "201490988858b511": "retirada por {by}"
++ "201490988858b511": "retirada por {by}",
+ "3d4448e3c061f894": "Outra máquina",
+ "349587beaf00ce5e": "{title}, delegado de {machine}, {count, plural, one {{count} tarefa} other {{count} tarefas}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} tarefa} other {{count} tarefas}}"
@@ apps/mobile/src/i18n/translations/pt-BR.json
## apps/mobile/src/i18n/translations/ru.json ##
@@
- "8d545d54c0a9e950": "Скрывать команды, правки и поиски, которые выполняют агенты. «Скрывать успешные» оставляет ошибки. «Дзен» показывает только итоговые ответы. Запросы подтверждения, вопросы и ошибки показываются всегда.",
- "99d51127f573296b": "Другой аккаунт",
- "8ec2c57414669b79": "Подключите второе рабочее пространство или пользователя {tracker}.",
-- "892f08d21b8e48a9": "Слить {layers} в {base} методом {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}}, когда будут выполнены требования. Это может произойти сразу."
-+ "892f08d21b8e48a9": "Слить {layers} в {base} методом {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}}, когда будут выполнены требования. Это может произойти сразу.",
+ "1a1beecff68a6e61": "Подтвердить аккаунт Google",
+ "99451a5d2d40440f": "Отозван: {by}.",
+ "3ee30a50b70fffab": "Отозван ({by}): {reason}",
+- "201490988858b511": "отозван: {by}"
++ "201490988858b511": "отозван: {by}",
+ "3d4448e3c061f894": "Другой компьютер",
+ "349587beaf00ce5e": "{title}, делегировано с {machine}, {count, plural, one {{count} задача} few {{count} задачи} many {{count} задач} other {{count} задачи}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} задача} few {{count} задачи} many {{count} задач} other {{count} задачи}}"
@@ apps/mobile/src/i18n/translations/ru.json
## apps/mobile/src/i18n/translations/sv.json ##
@@
- "8d545d54c0a9e950": "Dölj kommandon, redigeringar och sökningar som agenter kör. Dölj lyckade behåller misslyckanden. Zen visar bara slutliga svar. Godkännanden, frågor och fel visas alltid.",
- "99d51127f573296b": "Ett konto till",
- "8ec2c57414669b79": "Anslut en andra {tracker}-arbetsyta eller användare.",
-- "892f08d21b8e48a9": "Merga {layers} in i {base} med {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} när kraven är uppfyllda. Det kan ske direkt."
-+ "892f08d21b8e48a9": "Merga {layers} in i {base} med {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} när kraven är uppfyllda. Det kan ske direkt.",
+ "1a1beecff68a6e61": "Verifiera Google-konto",
+ "99451a5d2d40440f": "Återkallad av {by}.",
+ "3ee30a50b70fffab": "Återkallad av {by}: {reason}",
+- "201490988858b511": "återkallad av {by}"
++ "201490988858b511": "återkallad av {by}",
+ "3d4448e3c061f894": "Annan dator",
+ "349587beaf00ce5e": "{title}, delegerad från {machine}, {count, plural, one {{count} uppgift} other {{count} uppgifter}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} uppgift} other {{count} uppgifter}}"
@@ apps/mobile/src/i18n/translations/sv.json
## apps/mobile/src/i18n/translations/zh.json ##
@@
- "8d545d54c0a9e950": "隐藏智能体执行的命令、编辑和搜索。“隐藏成功的调用”仍保留失败项;“专注模式”仅显示最终回答。审批、提问和错误始终显示。",
- "99d51127f573296b": "其他账号",
- "8ec2c57414669b79": "连接第二个 {tracker} 工作区或用户。",
-- "892f08d21b8e48a9": "满足要求时使用{kind, select, squash {压缩合并} merge {合并} rebase {变基} fastForward {快进} other {{method}}}方式将 {layers} 合并到 {base}。这可能会立即发生。"
-+ "892f08d21b8e48a9": "满足要求时使用{kind, select, squash {压缩合并} merge {合并} rebase {变基} fastForward {快进} other {{method}}}方式将 {layers} 合并到 {base}。这可能会立即发生。",
+ "1a1beecff68a6e61": "验证 Google 账户",
+ "99451a5d2d40440f": "已由 {by} 撤回。",
+ "3ee30a50b70fffab": "已由 {by} 撤回:{reason}",
+- "201490988858b511": "已由 {by} 撤回"
++ "201490988858b511": "已由 {by} 撤回",
+ "3d4448e3c061f894": "其他机器",
+ "349587beaf00ce5e": "{title},由 {machine} 委派,{count, plural, other {{count} 个任务}}",
+ "88bcb7d812dfb32a": "{machine} · {count, plural, other {{count} 个任务}}"
@@ apps/web/src/components/Sidebar.tsx: import {
+import { environmentThreadShells, threadEnvironment } from "../state/threads";
import { useOlderSettledShelf, useOlderSettledShelfGrowth } from "../state/olderSettledShelf";
import { useThreadSearch } from "../state/queries";
- import { useOrchestrationCommand } from "../state/use-orchestration-command";
+ import { threadTriagePermitted, useOrchestrationCommand } from "../state/use-orchestration-command";
@@ apps/web/src/components/Sidebar.tsx: import {
resolveSidebarDropTarget,
resolveSidebarDropVerb,
@@ apps/web/src/components/sidebar/SidebarThreadRow.tsx: export function SortableTh
## apps/web/src/i18n/translations/de.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "Auto-Merge für Stack abbrechen",
-- "012c67c7f1a99e33": "Auto-Merge für Stack"
-+ "012c67c7f1a99e33": "Auto-Merge für Stack",
+ "201490988858b511": "zurückgezogen von {by}",
+ "99451a5d2d40440f": "Zurückgezogen von {by}.",
+ "3ee30a50b70fffab": "Zurückgezogen von {by}: {reason}",
+- "92e129bf413a1220": "zurückgezogen"
++ "92e129bf413a1220": "zurückgezogen",
+ "3d4448e3c061f894": "Anderer Rechner",
+ "349587beaf00ce5e": "{title}, delegiert von {machine}, {count, plural, one {{count} Aufgabe} other {{count} Aufgaben}}"
}
## apps/web/src/i18n/translations/en.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "Cancel stack auto-merge",
-- "012c67c7f1a99e33": "Auto-merge stack"
-+ "012c67c7f1a99e33": "Auto-merge stack",
+ "201490988858b511": "withdrawn by {by}",
+ "99451a5d2d40440f": "Withdrawn by {by}.",
+ "3ee30a50b70fffab": "Withdrawn by {by}: {reason}",
+- "92e129bf413a1220": "withdrawn"
++ "92e129bf413a1220": "withdrawn",
+ "3d4448e3c061f894": "Other machine",
+ "349587beaf00ce5e": "{title}, delegated from {machine}, {count, plural, one {{count} task} other {{count} tasks}}"
}
## apps/web/src/i18n/translations/es.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "Cancelar la fusión automática de la pila",
-- "012c67c7f1a99e33": "Fusión automática de la pila"
-+ "012c67c7f1a99e33": "Fusión automática de la pila",
+ "201490988858b511": "retirada por {by}",
+ "99451a5d2d40440f": "Retirada por {by}.",
+ "3ee30a50b70fffab": "Retirada por {by}: {reason}",
+- "92e129bf413a1220": "retirada"
++ "92e129bf413a1220": "retirada",
+ "3d4448e3c061f894": "Otra máquina",
+ "349587beaf00ce5e": "{title}, delegado desde {machine}, {count, plural, one {{count} tarea} other {{count} tareas}}"
}
## apps/web/src/i18n/translations/fr.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "Annuler la fusion automatique de la pile",
-- "012c67c7f1a99e33": "Fusion automatique de la pile"
-+ "012c67c7f1a99e33": "Fusion automatique de la pile",
+ "201490988858b511": "retirée par {by}",
+ "99451a5d2d40440f": "Retirée par {by}.",
+ "3ee30a50b70fffab": "Retirée par {by} : {reason}",
+- "92e129bf413a1220": "retirée"
++ "92e129bf413a1220": "retirée",
+ "3d4448e3c061f894": "Autre machine",
+ "349587beaf00ce5e": "{title}, délégué depuis {machine}, {count, plural, one {{count} tâche} other {{count} tâches}}"
}
## apps/web/src/i18n/translations/ja.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "スタックの自動マージをキャンセル",
-- "012c67c7f1a99e33": "スタックを自動マージ"
-+ "012c67c7f1a99e33": "スタックを自動マージ",
+ "201490988858b511": "{by} が取り下げ",
+ "99451a5d2d40440f": "{by} が取り下げました。",
+ "3ee30a50b70fffab": "{by} が取り下げました: {reason}",
+- "92e129bf413a1220": "取り下げ済み"
++ "92e129bf413a1220": "取り下げ済み",
+ "3d4448e3c061f894": "別のマシン",
+ "349587beaf00ce5e": "{title}、{machine} から委任、{count, plural, other {{count} 件のタスク}}"
}
## apps/web/src/i18n/translations/ko.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "스택 자동 병합 취소",
-- "012c67c7f1a99e33": "스택 자동 병합"
-+ "012c67c7f1a99e33": "스택 자동 병합",
+ "201490988858b511": "{by}에서 철회함",
+ "99451a5d2d40440f": "{by}에서 철회했습니다.",
+ "3ee30a50b70fffab": "{by}에서 철회했습니다: {reason}",
+- "92e129bf413a1220": "철회됨"
++ "92e129bf413a1220": "철회됨",
+ "3d4448e3c061f894": "다른 기기",
+ "349587beaf00ce5e": "{title}, {machine}에서 위임됨, {count, plural, other {작업 {count}개}}"
}
## apps/web/src/i18n/translations/pt-BR.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "Cancelar merge automático da pilha",
-- "012c67c7f1a99e33": "Merge automático da pilha"
-+ "012c67c7f1a99e33": "Merge automático da pilha",
+ "201490988858b511": "retirada por {by}",
+ "99451a5d2d40440f": "Retirada por {by}.",
+ "3ee30a50b70fffab": "Retirada por {by}: {reason}",
+- "92e129bf413a1220": "retirada"
++ "92e129bf413a1220": "retirada",
+ "3d4448e3c061f894": "Outra máquina",
+ "349587beaf00ce5e": "{title}, delegado de {machine}, {count, plural, one {{count} tarefa} other {{count} tarefas}}"
}
## apps/web/src/i18n/translations/ru.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "Отменить автослияние стека",
-- "012c67c7f1a99e33": "Автослияние стека"
-+ "012c67c7f1a99e33": "Автослияние стека",
+ "201490988858b511": "отозван: {by}",
+ "99451a5d2d40440f": "Отозван: {by}.",
+ "3ee30a50b70fffab": "Отозван ({by}): {reason}",
+- "92e129bf413a1220": "отозван"
++ "92e129bf413a1220": "отозван",
+ "3d4448e3c061f894": "Другой компьютер",
+ "349587beaf00ce5e": "{title}, делегировано с {machine}, {count, plural, one {{count} задача} few {{count} задачи} many {{count} задач} other {{count} задачи}}"
}
## apps/web/src/i18n/translations/sv.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "Avbryt automatisk merge för stacken",
-- "012c67c7f1a99e33": "Merga stacken automatiskt"
-+ "012c67c7f1a99e33": "Merga stacken automatiskt",
+ "201490988858b511": "återkallad av {by}",
+ "99451a5d2d40440f": "Återkallad av {by}.",
+ "3ee30a50b70fffab": "Återkallad av {by}: {reason}",
+- "92e129bf413a1220": "återkallad"
++ "92e129bf413a1220": "återkallad",
+ "3d4448e3c061f894": "Annan dator",
+ "349587beaf00ce5e": "{title}, delegerad från {machine}, {count, plural, one {{count} uppgift} other {{count} uppgifter}}"
}
## apps/web/src/i18n/translations/zh.json ##
@@
- ")"
- ],
- "33d18dda74f6d7b3": "取消堆叠自动合并",
-- "012c67c7f1a99e33": "自动合并堆叠"
-+ "012c67c7f1a99e33": "自动合并堆叠",
+ "201490988858b511": "已由 {by} 撤回",
+ "99451a5d2d40440f": "已由 {by} 撤回。",
+ "3ee30a50b70fffab": "已由 {by} 撤回:{reason}",
+- "92e129bf413a1220": "已撤回"
++ "92e129bf413a1220": "已撤回",
+ "3d4448e3c061f894": "其他机器",
+ "349587beaf00ce5e": "{title},由 {machine} 委派,{count, plural, other {{count} 个任务}}"
}
@@ packages/client-runtime/src/state/threadShell.ts: import {
const EMPTY_THREADS: ReadonlyArray<OrchestrationV2ThreadShell> = Object.freeze([]);
const EMPTY_SCOPED_THREAD_REFS: ReadonlyArray<ScopedThreadRef> = Object.freeze([]);
const EMPTY_THREAD_INDEX: ReadonlyMap<ThreadId, OrchestrationV2ThreadShell> = new Map();
-@@ packages/client-runtime/src/state/threadShell.ts: const isChildRunLive = (
+@@ packages/client-runtime/src/state/threadShell.ts: const isChildRunLive = (thread: Pick<OrchestrationV2ThreadShell, "activityRunSta
thread.status === "running" ||
thread.status === "waiting";
5: 8028f830c7 = 5: 499de67274 fix(client): Settled count leaves out tasks shown under their parent
6: a3db1b1404 ! 6: a0ac16722e fix(server): a delegated task settles with its parent across machines
@@ apps/server/src/orchestration-v2/RemoteDelegatedTask.test.ts: it.layer(layerTest
const orchestrator = yield* Orchestrator.OrchestratorV2;
## apps/server/src/orchestration-v2/ThreadSettlementService.test.ts ##
-@@ apps/server/src/orchestration-v2/ThreadSettlementService.test.ts: import { assert, describe, expect, it } from "@effect/vitest";
- import * as DateTime from "effect/DateTime";
- import {
- DEFAULT_SERVER_SETTINGS,
-+ EnvironmentId,
- GitManagerError,
- ProjectId,
- EventId,
@@ apps/server/src/orchestration-v2/ThreadSettlementService.test.ts: const appThread = (
deletedAt: null,
};
@@ apps/server/src/orchestration-v2/ThreadSettlementService.test.ts: describe("Thre
]);
expect(yield* Ref.get(fixture.branchCalls)).toEqual([]);
expect(yield* Ref.get(fixture.summaryCalls)).toEqual([]);
+@@ apps/server/src/orchestration-v2/ThreadSettlementService.test.ts: describe("ThreadSettlementServiceV2 worker", () => {
+ );
+
+ it.effect(
+- "settles a finished task delegated from a linked environment, which has no parent here",
++ "settles a finished task delegated from a linked environment once its parent there is done",
+ () =>
+ Effect.gen(function* () {
+ yield* TestClock.setTime(Date.parse(NOW));
+@@ apps/server/src/orchestration-v2/ThreadSettlementService.test.ts: describe("ThreadSettlementServiceV2 worker", () => {
+ environmentId: EnvironmentId.make("environment-elsewhere"),
+ threadId: ThreadId.make("parent-elsewhere"),
+ title: "Parent",
++ parentDoneAt: NOW,
+ },
+ };
+ const ordinary = { ...appThread("ordinary", null), branch: "feature" };
## apps/server/src/orchestration-v2/ThreadSettlementService.ts ##
+@@ apps/server/src/orchestration-v2/ThreadSettlementService.ts: import { resolveProjectSettings } from "@t3tools/shared/projectSettings";
+ import { visibleThreadPullRequests } from "@t3tools/shared/threadPullRequests";
+ import {
+ CommandId,
+- isDelegatedAppThread,
+ isOrchestrationV2WorkActive,
+ type ThreadId,
+ type OrchestrationV2DomainEvent,
@@ apps/server/src/orchestration-v2/ThreadSettlementService.ts: function autoSettlementConfigured(settings: import("@t3tools/contracts").ServerS
);
}
@@ apps/server/src/orchestration-v2/ThreadSettlementService.ts: export const make =
// Merge events resweep all candidates because unlinked threads settle through branch lookup.
const candidates = threads.filter(
(thread) =>
-- (automaticSettlementEnabled || thread.lineage.relationshipToParent === "subagent") &&
+- (automaticSettlementEnabled || isDelegatedAppThread(thread)) &&
+ (automaticSettlementEnabled || settlesWithParent(thread)) &&
isAutoSettlementCandidate(thread, nowMs),
);
@@ apps/server/src/orchestration-v2/ThreadSettlementService.ts: export const make =
// Runs per candidate thread, thousands per sweep on busy servers; the sweep owns the span.
const settleThread = Effect.fnUntraced(
function* (thread: (typeof candidates)[number], pullRequest: SettlementPullRequest | null) {
-- if (thread.lineage.relationshipToParent === "subagent") {
+- if (isDelegatedAppThread(thread)) {
+ if (settlesWithParent(thread)) {
if (yield* terminals.hasActiveSubprocess({ threadId: thread.id })) return null;
-- // The store returns a subagent only once its parent is done, so it
-- // settles with the parent and never runs its own lookup.
+- // The store returns a subagent only once its parent is done, so it settles with the
+- // parent. A task delegated from a linked environment has no parent here, so it settles
+- // once its own work is done. Neither runs its own lookup.
+ // The store returns a subagent only once its parent is done, and a delegated
+ // task is marked once its parent is, so it settles with it and never looks up.
const uuid = yield* random.uuidV4();
@@ apps/server/src/orchestration-v2/ThreadSettlementService.ts: export const make =
const lookupCandidates = (yield* Effect.forEach(
candidates,
(thread) => {
-- if (thread.lineage.relationshipToParent === "subagent") return settleThread(thread, null);
+- if (isDelegatedAppThread(thread)) return settleThread(thread, null);
+ if (settlesWithParent(thread)) return settleThread(thread, null);
const projectSettings = resolveProjectSettings(settings, thread.projectId).settings;
// Skip no-op decisions; actual settlement still reads fresh settings before dispatch.
7: d9967c5bec = 7: 63f3de0163 fix(mobile): Personal Team iOS builds drop push and associated domains entitlements
8: 3650223199 ! 8: b99ebc8d53 fix(server): the parent-done route refuses read-only links and renews only accepted ones
@@ apps/server/src/peer/RemoteDelegation.test.ts: import * as Stream from "effect/S
+import * as HttpClient from "effect/http/HttpClient";
+import * as HttpClientRequest from "effect/http/HttpClientRequest";
import * as TestClock from "effect/testing/TestClock";
- import type * as SqlClient from "effect/sql/SqlClient";
+ import * as SqlClient from "effect/sql/SqlClient";
import { McpSchema, McpServer } from "effect/ai";
@@ apps/server/src/peer/RemoteDelegation.test.ts: it.effect("only the environment that delegated a task can tell it its parent is
).pipe(Effect.provide(NodeHttpServer.layerTest)),
9: 8e740d998f ! 9: 4e5a896f78 fix(server): a parent's stop, archive or delete reaches its tasks in linked environments
@@ apps/server/src/orchestration-v2/Orchestrator.ts: const makeOrchestrator = Effec
const stopDelegatedTasks =
- command.stopDelegatedTasks === false ||
- !projection.subagents.some(
-- (task) => task.origin === "app_owned" && task.childThreadId !== null,
+- (task) =>
+- task.origin === "app_owned" &&
+- (task.childThreadId !== null || task.remoteChild !== undefined),
- )
+ command.stopDelegatedTasks === false || !projection.subagents.some(hasDelegatedChild)
? Effect.void
: Ref.update(effects, (existing) => [...existing, delegatedTasksStopEffect(command)]);
const latestRun = projection.runs.findLast((run) => run.status !== "queued");
+ ## apps/server/src/orchestration-v2/ProjectionMaintenance.test.ts ##
+@@
+ import { assert, it } from "@effect/vitest";
+ import {
++ EnvironmentId,
+ EventId,
+ MessageId,
+ NodeId,
+@@ apps/server/src/orchestration-v2/ProjectionMaintenance.test.ts: it.effect("a deleted thread keeps only its tombstone", () =>
+ }).pipe(Effect.provide(layerTest)),
+ );
+
++const remoteTask = (
++ threadId: ThreadId,
++ now: DateTime.Utc,
++ task: {
++ readonly status: "running" | "completed";
++ readonly stoppedThere?: true;
++ readonly parentDoneThere?: true;
++ },
++): OrchestrationV2DomainEvent => ({
++ id: EventId.make(`event:purge:${threadId}:remote-task`),
++ type: "subagent.updated",
++ threadId,
++ occurredAt: now,
++ payload: {
++ id: NodeId.make(`node:${threadId}:remote-task`),
++ threadId,
++ runId: null,
++ parentNodeId: NodeId.make(`node:${threadId}:parent`),
++ origin: "app_owned",
++ createdBy: "agent",
++ driver: providerDriver,
++ providerInstanceId,
++ providerThreadId: null,
++ childThreadId: null,
++ remoteChild: {
++ environmentId: EnvironmentId.make("environment:purge-elsewhere"),
++ threadId: ThreadId.make(`thread:there:${threadId}`),
++ label: "elsewhere",
++ ...(task.stoppedThere === undefined ? {} : { stoppedThere: true }),
++ ...(task.parentDoneThere === undefined ? {} : { parentDoneThere: true }),
++ },
++ nativeTaskRef: null,
++ prompt: "Review",
++ title: "Review",
++ model: null,
++ status: task.status,
++ result: task.status === "running" ? null : "Reviewed",
++ startedAt: now,
++ completedAt: task.status === "running" ? null : now,
++ updatedAt: now,
++ },
++});
++
++it.effect("a deleted parent keeps its remote tasks until they are stopped and told there", () =>
++ Effect.gen(function* () {
++ const maintenance = yield* ProjectionMaintenance.ProjectionMaintenanceV2;
++ const sink = yield* EventSink.EventSinkV2;
++ const sql = yield* SqlClient.SqlClient;
++ const now = yield* DateTime.now;
++ // Still running there, so its follower must stop it there.
++ const open = makeThread(ThreadId.make("thread:purge-remote-open"), now);
++ // Finished there, but its thread there is not yet told this parent is done.
++ const owed = makeThread(ThreadId.make("thread:purge-remote-owed"), now);
++ yield* writeThread(open, now);
++ yield* writeThread(owed, now);
++ yield* sink.write({
++ events: [remoteTask(open.id, now, { status: "running", parentDoneThere: true })],
++ });
++ yield* sink.write({
++ events: [remoteTask(owed.id, now, { status: "completed", stoppedThere: true })],
++ });
++ yield* deleteThread(open, now);
++ yield* deleteThread(owed, now);
++
++ assert.equal(yield* maintenance.purgeDeletedThread(open.id), 0);
++ assert.equal(yield* maintenance.purgeDeletedThread(owed.id), 0);
++ yield* maintenance.pruneEventStore();
++ const remoteTasks = sql<{ readonly thread_id: string }>`
++ SELECT thread_id FROM orchestration_v2_projection_subagents
++ WHERE json_type(payload_json, '$.remoteChild') = 'object' ORDER BY thread_id
++ `;
++ assert.deepEqual(
++ (yield* remoteTasks).map((row) => row.thread_id),
++ [open.id, owed.id],
++ );
++
++ yield* sql`
++ UPDATE orchestration_v2_projection_subagents
++ SET payload_json = json_set(payload_json, '$.result', 'Stopped', '$.status', 'interrupted',
++ '$.remoteChild.stoppedThere', json('true'))
++ WHERE thread_id = ${open.id}
++ `;
++ yield* sql`
++ UPDATE orchestration_v2_projection_subagents
++ SET payload_json = json_set(payload_json, '$.remoteChild.parentDoneThere', json('true'))
++ WHERE thread_id = ${owed.id}
++ `;
++ assert.isAbove(yield* maintenance.purgeDeletedThread(open.id), 0);
++ assert.isAbove((yield* maintenance.pruneEventStore()).purgedRowCount, 0);
++ assert.deepEqual(yield* remoteTasks, []);
++ assert.equal(yield* contentRowCount(open.id), 0);
++ assert.equal(yield* contentRowCount(owed.id), 0);
++ }).pipe(Effect.provide(layerTest)),
++);
++
+ it.effect("a deleted run-fork source stays until its last live fork is deleted", () =>
+ Effect.gen(function* () {
+ const maintenance = yield* ProjectionMaintenance.ProjectionMaintenanceV2;
+
+ ## apps/server/src/orchestration-v2/ProjectionMaintenance.ts ##
+@@ apps/server/src/orchestration-v2/ProjectionMaintenance.ts: import {
+ EVENT_LOG_PRUNED_THROUGH,
+ } from "../persistence/OrchestrationEventStore.ts";
+ import * as ProjectionStore from "./ProjectionStore.ts";
++import {
++ OPEN_REMOTE_TASK_CONDITION,
++ REMOTE_TASK_OWED_PARENT_DONE_CONDITION,
++} from "./remoteParentDone.ts";
+
+ export class ProjectionMaintenanceError extends Schema.TaggedError<ProjectionMaintenanceError>()(
+ "ProjectionMaintenanceError",
+@@ apps/server/src/orchestration-v2/ProjectionMaintenance.ts: export const layer: Layer.Layer<ProjectionMaintenanceV2, never, SqlClient.SqlCli |
|
Fix-round range-diff, part 2 of 3: range-diff part 2 + AND task.status IN ('idle', 'pending', 'running', 'waiting')
+ AND parent.deleted_at IS NULL
+ )
++ -- RemoteDelegation still reads a deleted parent's remote tasks to stop them there or to
++ -- tell them it is done; the sweep takes the thread once both are recorded.
++ AND NOT EXISTS (
++ SELECT 1 FROM orchestration_v2_projection_subagents
++ WHERE orchestration_v2_projection_subagents.thread_id = thread.thread_id
++ AND (
++ (${sql.literal(OPEN_REMOTE_TASK_CONDITION)})
++ OR (${sql.literal(REMOTE_TASK_OWED_PARENT_DONE_CONDITION)})
++ )
++ )
+ -- The delete's own purge always runs; the sweep only takes threads with something left.
+ AND ${
+ deletedThreadId !== undefined
+
+ ## apps/server/src/orchestration-v2/ProjectionStore.ts ##
+@@ apps/server/src/orchestration-v2/ProjectionStore.ts: import { MCP_APP_OUTPUT_KEY } from "@t3tools/shared/mcpApp";
+ import { normalizeProjectPathForComparison } from "@t3tools/shared/path";
+ import { threadHtmlRenderAttachmentIds } from "../attachmentStore.ts";
+ import { DELEGATED_TASK_MESSAGE_CONDITION } from "./delegatedTaskMessage.ts";
+-import { REMOTE_TASK_OWED_PARENT_DONE_CONDITION } from "./remoteParentDone.ts";
++import {
++ OPEN_REMOTE_TASK_CONDITION,
++ REMOTE_TASK_OWED_PARENT_DONE_CONDITION,
++} from "./remoteParentDone.ts";
+ import {
+ DEFERRED_COMMAND_MESSAGE_CONDITION,
+ JAVASCRIPT_TRIM_WHITESPACE,
+@@ apps/server/src/orchestration-v2/ProjectionStore.ts: export const layer: Layer.Layer<ProjectionStoreV2, never, SqlClient.SqlClient> =
+ readonly subagent_id: string;
+ }>`
+ SELECT thread_id, subagent_id FROM orchestration_v2_projection_subagents
+- WHERE origin = 'app_owned'
+- AND child_thread_id IS NULL
+- AND json_type(payload_json, '$.remoteChild') = 'object'
+- AND (
+- json_type(payload_json, '$.result') = 'null'
+- OR (
+- json_extract(payload_json, '$.status') IN ('cancelled', 'interrupted')
+- AND json_type(payload_json, '$.remoteChild.stoppedThere') IS NOT 'true'
+- )
+- OR json_type(payload_json, '$.remoteChild.stoppedThere') = 'false'
+- )
++ WHERE ${sql.literal(OPEN_REMOTE_TASK_CONDITION)}
+ `.pipe(
+ Effect.map((rows) =>
+ rows.map((row) => ({
+
## apps/server/src/orchestration-v2/RemoteDelegatedTask.test.ts ##
@@ apps/server/src/orchestration-v2/RemoteDelegatedTask.test.ts: it.layer(layerTest)("a delegated task in a linked environment", (it) => {
const index = yield* (yield* ProjectionStore.ProjectionStoreV2).listActiveShellIndex();
@@ apps/server/src/orchestration-v2/ThreadDeletion.test.ts: it.effect("queues provi
{ type: "terminal.cleanup" },
{ type: "preview.cleanup" },
{ type: "attachment.cleanup", attachmentIds: ["shared_file"] },
-+ // Last, so a stop waiting on another machine holds up none of the cleanup.
++ // After the cleanup, so a stop waiting on another machine holds none of it up.
+ { type: "delegated-tasks.stop", reason: "Thread deleted." },
+ { type: "thread-content.purge" },
],
);
- }).pipe(Effect.provide(IdAllocator.layer)),
## apps/server/src/orchestration-v2/ThreadDeletion.ts ##
@@ apps/server/src/orchestration-v2/ThreadDeletion.ts: import type {
@@ apps/server/src/orchestration-v2/ThreadDeletion.ts: export const planThreadDelet
request: { type: "attachment.cleanup", attachmentIds },
});
}
-+ // Last, since a thread's effects run in order and a stop may wait on another machine.
++ // After the cleanup, since a thread's effects run in order and a stop may wait on another
++ // machine; before the purge, which deletes the tasks the stop reads.
+ if (
+ projection.subagents.some(
+ (task) =>
@@ apps/server/src/orchestration-v2/ThreadDeletion.ts: export const planThreadDelet
+ request: { type: "delegated-tasks.stop", reason: "Thread deleted." },
+ });
+ }
- return { events, effects };
- });
+ effects.push({
+ id: `effect:${command.commandId}:thread-content.purge`,
+ commandId: command.commandId,
## apps/server/src/orchestration-v2/ThreadManagementService.ts ##
@@ apps/server/src/orchestration-v2/ThreadManagementService.ts: const make = Effect.gen(function* () {
@@ apps/server/src/orchestration-v2/ThreadStop.test.ts: it.effect("a repeated Stop
"%s cancels buffered wakes and preserves durable queued messages",
(type) =>
+ ## apps/server/src/orchestration-v2/remoteParentDone.ts ##
+@@ apps/server/src/orchestration-v2/remoteParentDone.ts: export const REMOTE_TASK_OWED_PARENT_DONE_CONDITION = `origin = 'app_owned' AND
+ AND json_valid(payload_json)
+ AND json_type(payload_json, '$.remoteChild') = 'object'
+ AND json_type(payload_json, '$.remoteChild.parentDoneThere') IS NOT 'true'`;
++
++/** A remote task whose follower must still stop it there or read its result, on the unaliased table. */
++export const OPEN_REMOTE_TASK_CONDITION = `origin = 'app_owned'
++ AND child_thread_id IS NULL
++ AND json_type(payload_json, '$.remoteChild') = 'object'
++ AND (
++ json_type(payload_json, '$.result') = 'null'
++ OR (
++ json_extract(payload_json, '$.status') IN ('cancelled', 'interrupted')
++ AND json_type(payload_json, '$.remoteChild.stoppedThere') IS NOT 'true'
++ )
++ OR json_type(payload_json, '$.remoteChild.stoppedThere') = 'false'
++ )`;
+
## apps/server/src/peer/RemoteDelegation.test.ts ##
-@@ apps/server/src/peer/RemoteDelegation.test.ts: import * as HttpBody from "effect/http/HttpBody";
- import * as HttpClient from "effect/http/HttpClient";
- import * as HttpClientRequest from "effect/http/HttpClientRequest";
- import * as TestClock from "effect/testing/TestClock";
--import type * as SqlClient from "effect/sql/SqlClient";
-+import * as SqlClient from "effect/sql/SqlClient";
- import { McpSchema, McpServer } from "effect/ai";
-
- import * as ServerConfig from "../config.ts";
@@ apps/server/src/peer/RemoteDelegation.test.ts: it.effect("a Stop on a task that has its result reaches there after a restart",
).pipe(Effect.provide(NodeHttpServer.layerTest)),
);
10: 43302dc6a1 = 10: a3e8c80bf4 fix(server): Codex full-access agent threads no longer ask command approvals
11: 87a0dbb313 = 11: 9c9da268a5 fix(server): scheduled Codex full-access runs no longer ask command approvals
12: 4de457f624 ! 12: 9517c759ac feat(server): dispatch tools refuse unfilled briefs and misplaced model settings
@@ apps/server/src/mcp/OrchestratorMcpService.ts: import {
resolveProjectProviderInstanceEnabled,
SECRET_REQUEST_UNSAVED_NOTE,
} from "@t3tools/contracts";
-@@ apps/server/src/mcp/OrchestratorMcpService.ts: function providerConstraints(
- return constraints;
- }
-
--/** t3_thread_launch keeps a selection as given, so it can hold options its model does not have. */
-+/** A thread's selection can hold options its model lacks, as from t3_thread_configure or an older launch. */
- function knownOptions(
- options: ReadonlyArray<ProviderOptionSelection> | undefined,
- descriptors: ReadonlyArray<ProviderOptionDescriptor> | undefined,
-@@ apps/server/src/mcp/OrchestratorMcpService.ts: function invalidOptionSelections(
- return problems;
- }
-
-+/** delegate_task and t3_thread_launch accept the same option selections for a model. */
-+export const requireAdvertisedOptions = (
-+ provider: ServerProvider,
-+ model: string,
-+ options: ReadonlyArray<ProviderOptionSelection> | undefined,
-+) => {
-+ const descriptors = advertisedModel(provider, model)?.capabilities?.optionDescriptors;
-+ const requested = withLegacyUltracodeEffort(descriptors, options);
-+ const invalid = requested === undefined ? [] : invalidOptionSelections(requested, descriptors);
-+ return invalid.length === 0
-+ ? Effect.void
-+ : Effect.fail(
-+ failure(
-+ "invalid_request",
-+ `Model ${model} on provider ${provider.instanceId} rejected options: ${invalid.join(" ")}`,
-+ ),
-+ );
-+};
-+
- function taskStatusForRun(
- run: Pick<OrchestrationV2Run, "status" | "restartCancelledBackgroundWork"> | undefined,
- ): OrchestratorMcpDelegateTaskResult["status"] {
-@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function* () {
- const advertised = advertisedModel(provider, model);
- const descriptors = advertised?.capabilities?.optionDescriptors;
- const requestedOptions = withLegacyUltracodeEffort(descriptors, input.target?.options);
-- if (requestedOptions !== undefined) {
-- const invalid = invalidOptionSelections(requestedOptions, descriptors);
-- if (invalid.length > 0) {
-- return yield* failure(
-- "invalid_request",
-- `Model ${model} on provider ${instanceId} rejected options: ${invalid.join(" ")}`,
-- );
-- }
-- }
-+ yield* requireAdvertisedOptions(provider, model, input.target?.options);
-
- const inheritsOptions =
- instanceId === inheritedSelection.instanceId &&
@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function* () {
};
}),
@@ apps/server/src/mcp/toolkits/project/handlers.test.ts: it.effect("a launch with
expect(launched).toHaveLength(0);
expect(yield* launchWith("claudeAgent", "Opus")).toMatchObject({
-@@ apps/server/src/mcp/toolkits/project/handlers.test.ts: it.effect("a launch with a model its provider does not advertise creates no thre
- }),
+@@ apps/server/src/mcp/toolkits/project/handlers.test.ts: it.effect(
+ }),
);
+it.effect("a launch whose message still holds a placeholder creates no thread", () =>
@@ apps/server/src/mcp/toolkits/project/handlers.ts
CommandId,
+ literalTemplateRefusal,
MessageId,
+ type ModelSelection,
ThreadId,
- OrchestratorMcpFailure,
@@ apps/server/src/mcp/toolkits/project/handlers.ts: export const layer = McpToolAccess.toLayer(ProjectToolkit, {
const scope = yield* McpInvocationContext.McpInvocationContext;
const context = yield* readCaller();
@@ apps/server/src/mcp/toolkits/project/handlers.ts: export const layer = McpToolAc
// A retry with the same key replays the first launch: the ids derive
// from the caller and the key, and the launch service replays a
// command it already accepted.
-@@ apps/server/src/mcp/toolkits/project/handlers.ts: export const layer = McpToolAccess.toLayer(ProjectToolkit, {
- );
- return provider === undefined
- ? Effect.void
-- : OrchestrationMcp.requireAdvertisedModel(provider, model);
-+ : OrchestrationMcp.requireAdvertisedModel(provider, model).pipe(
-+ Effect.andThen(
-+ OrchestrationMcp.requireAdvertisedOptions(
-+ provider,
-+ model,
-+ input.modelSelection?.options,
-+ ),
-+ ),
-+ );
- };
- const checked = requireModel(yield* registry.getProviders);
- yield* cwd === undefined
## apps/server/src/mcp/toolkits/project/tools.ts ##
@@ apps/server/src/mcp/toolkits/project/tools.ts: import {
@@ apps/server/src/orchestration-v2/testkit/fixtures/turn_interrupt/muse_transcript
{"type":"emit_inbound","label":"response:turn/interrupt","frame":{"jsonrpc":"2.0","id":4,"result":{"commandId":"01a11a6d-2f0b-7000-a1d4-359cf54e471a","status":"accepted","turnId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5"}}}
{"type":"emit_inbound","label":"item/completed","frame":{"jsonrpc":"2.0","method":"item/completed","params":{"sessionId":"01a11a6d-2d3d-7000-8178-411fdb90bc34","viewCursor":"v:01a11a6d-2d3d-7000-8178-411fdb90bc34:7","sourceRange":{"stream":{"kind":"session","id":"01a11a6d-2d3d-7000-8178-411fdb90bc34"},"first":{"id":"ae604001-22b9-479c-a45b-3dcfed45996c","sequence":37},"last":{"id":"3962d8d1-4608-4dda-8fdc-39a1804474aa","sequence":50}},"item":{"itemId":"ae604001-22b9-479c-a45b-3dcfed45996c","kind":"reminderChild","turnId":"01a11a6d-2ee0-7000-be19-f20eda7ce5d5","revision":2,"status":"cancelled","recordedAt":"2026-10-08T07:32:05.727236Z","fallbackText":"Reminder child session","failureReason":"main run cancelled","childSessionId":"1f58196a-6bf6-42da-9499-8f53a439e6e1","reminderAgentId":"skill-reminder","generationId":1,"taskId":"01a11a6d-2f65-70b1-bb8f-69b33bb4fc62"}},"emittedAtMs":1791444725734}}
- ## apps/server/src/provider/agentContextBudget.json ##
-@@
- {
-- "claudeSystemAppendBytes": 6245,
-- "codexAdditionalContextBytes": 7639,
-- "mcpToolListJsonBytes": 61709
-+ "claudeSystemAppendBytes": 6295,
-+ "codexAdditionalContextBytes": 7689,
-+ "mcpToolListJsonBytes": 61951
- }
-
## packages/contracts/src/orchestratorMcp.test.ts ##
@@ packages/contracts/src/orchestratorMcp.test.ts: import * as Schema from "effect/Schema";
import {
13: c8076d1e4d ! 13: a099f107a5 feat(server): resume runs that failed on transient provider errors
@@ apps/web/src/components/sidebar/failedSessionsBanner.logic.ts (new)
## apps/web/src/i18n/translations/de.json ##
@@
- "33d18dda74f6d7b3": "Auto-Merge für Stack abbrechen",
- "012c67c7f1a99e33": "Auto-Merge für Stack",
+ "3ee30a50b70fffab": "Zurückgezogen von {by}: {reason}",
+ "92e129bf413a1220": "zurückgezogen",
"3d4448e3c061f894": "Anderer Rechner",
- "349587beaf00ce5e": "{title}, delegiert von {machine}, {count, plural, one {{count} Aufgabe} other {{count} Aufgaben}}"
+ "349587beaf00ce5e": "{title}, delegiert von {machine}, {count, plural, one {{count} Aufgabe} other {{count} Aufgaben}}",
@@ apps/web/src/i18n/translations/de.json
## apps/web/src/i18n/translations/en.json ##
@@
- "33d18dda74f6d7b3": "Cancel stack auto-merge",
- "012c67c7f1a99e33": "Auto-merge stack",
+ "3ee30a50b70fffab": "Withdrawn by {by}: {reason}",
+ "92e129bf413a1220": "withdrawn",
"3d4448e3c061f894": "Other machine",
- "349587beaf00ce5e": "{title}, delegated from {machine}, {count, plural, one {{count} task} other {{count} tasks}}"
+ "349587beaf00ce5e": "{title}, delegated from {machine}, {count, plural, one {{count} task} other {{count} tasks}}",
@@ apps/web/src/i18n/translations/en.json
## apps/web/src/i18n/translations/es.json ##
@@
- "33d18dda74f6d7b3": "Cancelar la fusión automática de la pila",
- "012c67c7f1a99e33": "Fusión automática de la pila",
+ "3ee30a50b70fffab": "Retirada por {by}: {reason}",
+ "92e129bf413a1220": "retirada",
"3d4448e3c061f894": "Otra máquina",
- "349587beaf00ce5e": "{title}, delegado desde {machine}, {count, plural, one {{count} tarea} other {{count} tareas}}"
+ "349587beaf00ce5e": "{title}, delegado desde {machine}, {count, plural, one {{count} tarea} other {{count} tareas}}",
@@ apps/web/src/i18n/translations/es.json
## apps/web/src/i18n/translations/fr.json ##
@@
- "33d18dda74f6d7b3": "Annuler la fusion automatique de la pile",
- "012c67c7f1a99e33": "Fusion automatique de la pile",
+ "3ee30a50b70fffab": "Retirée par {by} : {reason}",
+ "92e129bf413a1220": "retirée",
"3d4448e3c061f894": "Autre machine",
- "349587beaf00ce5e": "{title}, délégué depuis {machine}, {count, plural, one {{count} tâche} other {{count} tâches}}"
+ "349587beaf00ce5e": "{title}, délégué depuis {machine}, {count, plural, one {{count} tâche} other {{count} tâches}}",
@@ apps/web/src/i18n/translations/fr.json
## apps/web/src/i18n/translations/ja.json ##
@@
- "33d18dda74f6d7b3": "スタックの自動マージをキャンセル",
- "012c67c7f1a99e33": "スタックを自動マージ",
+ "3ee30a50b70fffab": "{by} が取り下げました: {reason}",
+ "92e129bf413a1220": "取り下げ済み",
"3d4448e3c061f894": "別のマシン",
- "349587beaf00ce5e": "{title}、{machine} から委任、{count, plural, other {{count} 件のタスク}}"
+ "349587beaf00ce5e": "{title}、{machine} から委任、{count, plural, other {{count} 件のタスク}}",
@@ apps/web/src/i18n/translations/ja.json
## apps/web/src/i18n/translations/ko.json ##
@@
- "33d18dda74f6d7b3": "스택 자동 병합 취소",
- "012c67c7f1a99e33": "스택 자동 병합",
+ "3ee30a50b70fffab": "{by}에서 철회했습니다: {reason}",
+ "92e129bf413a1220": "철회됨",
"3d4448e3c061f894": "다른 기기",
- "349587beaf00ce5e": "{title}, {machine}에서 위임됨, {count, plural, other {작업 {count}개}}"
+ "349587beaf00ce5e": "{title}, {machine}에서 위임됨, {count, plural, other {작업 {count}개}}",
@@ apps/web/src/i18n/translations/ko.json
## apps/web/src/i18n/translations/pt-BR.json ##
@@
- "33d18dda74f6d7b3": "Cancelar merge automático da pilha",
- "012c67c7f1a99e33": "Merge automático da pilha",
+ "3ee30a50b70fffab": "Retirada por {by}: {reason}",
+ "92e129bf413a1220": "retirada",
"3d4448e3c061f894": "Outra máquina",
- "349587beaf00ce5e": "{title}, delegado de {machine}, {count, plural, one {{count} tarefa} other {{count} tarefas}}"
+ "349587beaf00ce5e": "{title}, delegado de {machine}, {count, plural, one {{count} tarefa} other {{count} tarefas}}",
@@ apps/web/src/i18n/translations/pt-BR.json
## apps/web/src/i18n/translations/ru.json ##
@@
- "33d18dda74f6d7b3": "Отменить автослияние стека",
- "012c67c7f1a99e33": "Автослияние стека",
+ "3ee30a50b70fffab": "Отозван ({by}): {reason}",
+ "92e129bf413a1220": "отозван",
"3d4448e3c061f894": "Другой компьютер",
- "349587beaf00ce5e": "{title}, делегировано с {machine}, {count, plural, one {{count} задача} few {{count} задачи} many {{count} задач} other {{count} задачи}}"
+ "349587beaf00ce5e": "{title}, делегировано с {machine}, {count, plural, one {{count} задача} few {{count} задачи} many {{count} задач} other {{count} задачи}}",
@@ apps/web/src/i18n/translations/ru.json
## apps/web/src/i18n/translations/sv.json ##
@@
- "33d18dda74f6d7b3": "Avbryt automatisk merge för stacken",
- "012c67c7f1a99e33": "Merga stacken automatiskt",
+ "3ee30a50b70fffab": "Återkallad av {by}: {reason}",
+ "92e129bf413a1220": "återkallad",
"3d4448e3c061f894": "Annan dator",
- "349587beaf00ce5e": "{title}, delegerad från {machine}, {count, plural, one {{count} uppgift} other {{count} uppgifter}}"
+ "349587beaf00ce5e": "{title}, delegerad från {machine}, {count, plural, one {{count} uppgift} other {{count} uppgifter}}",
@@ apps/web/src/i18n/translations/sv.json
## apps/web/src/i18n/translations/zh.json ##
@@
- "33d18dda74f6d7b3": "取消堆叠自动合并",
- "012c67c7f1a99e33": "自动合并堆叠",
+ "3ee30a50b70fffab": "已由 {by} 撤回:{reason}",
+ "92e129bf413a1220": "已撤回",
"3d4448e3c061f894": "其他机器",
- "349587beaf00ce5e": "{title},由 {machine} 委派,{count, plural, other {{count} 个任务}}"
+ "349587beaf00ce5e": "{title},由 {machine} 委派,{count, plural, other {{count} 个任务}}",
14: b6094a0298 = 14: 121683eaf2 feat: project standing instructions and role models for delegated tasks
15: 3baf41f2d1 ! 15: 459e926ff2 feat(server): give each thread its own temp directory and an optional agent memory ceiling
@@ apps/server/src/storageCleanup.test.ts: import {
import * as ServerConfig from "./config.ts";
+import { threadTempDirectory } from "./process/agentScope.ts";
import * as StorageCleanup from "./storageCleanup.ts";
+ import * as CheckpointCaptureIndex from "./vcs/checkpointCaptureIndex.ts";
import * as GitVcsDriver from "./vcs/GitVcsDriver.ts";
- import * as TaskFolders from "./workspace/TaskFolders.ts";
@@ apps/server/src/storageCleanup.test.ts: const cleanupFixture = (
),
getThreadShell: (threadId: ThreadId) =>
16: 5c8f14c328 ! 16: 8c3a6a2f06 feat(server): delegate_task runs a task in another project here and reports back
@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function*
+ : readTask(scope, taskId, false, true);
+ }
let workspaceStrategy: OrchestrationV2ThreadLaunchWorkspaceStrategy | undefined;
- if (input.isolation === "worktree" && !isRetryOfAcceptedDelegation) {
- const project = yield* requireProject(parent.thread.projectId);
+ if (
+ input.isolation === "worktree" &&
@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function* () {
),
),
@@ apps/server/src/peer/RemoteDelegation.ts: const make = Effect.gen(function* () {
/** A defect, logged, as a failure, so a retry covers it. */
- ## apps/server/src/provider/agentContextBudget.json ##
-@@
- {
- "claudeSystemAppendBytes": 6295,
- "codexAdditionalContextBytes": 7689,
-- "mcpToolListJsonBytes": 61951
-+ "mcpToolListJsonBytes": 62055
- }
-
## packages/client-runtime/src/state/threadShell.test.ts ##
@@ packages/client-runtime/src/state/threadShell.test.ts: describe("v2 thread shell lists", () => {
.get(threads.navigationThreadShellsAtom)
17: 6cef726077 = 17: 864140a50d fix: transient retries count across the continuation chain; banner names environments
18: 2251d716f6 = 18: 7f59a4b11b fix(server): a declined transient try no longer blocks its run's continuation
19: 6a138a2ed4 = 19: e543ff23f4 feat(mobile): edit standing instructions, provider error resume and agent memory ceiling
20: b4b34c6ef0 ! 20: 5dfbcefe99 fix(server): delegated children hold their completion on background commands they left running
@@ apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts: export const makeCo
yield* emitMcpStartupFailures(context);
return context;
});
+@@ apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts: export const makeCodexAdapterV2 = Effect.fn("makeCodexAdapterV2")(function* (
+ new Set([...(current.get(nativeTurnId) ?? []), ...exited]),
+ ),
+ );
++ if (context.subagent === null) yield* syncRetainedCommandRoster(nativeThreadId);
+ }),
+ );
+ },
@@ apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts: export const makeCodexAdapterV2 = Effect.fn("makeCodexAdapterV2")(function* (
});
yield* releaseSettledTurnIfIdle(context.nativeTurnId);
@@ apps/server/src/orchestration-v2/ThreadManagementService.ts: export class Thread
case "failed":
return "Failed to update the awaited background work.";
- case "unmatched":
-- return "None of these IDs is running background work on this thread, so this request registers no wait for them. If the task already finished, read its output now. Otherwise pass the task ID of a background command or Monitor you started. Subagent, Agent tool, and delegate_task IDs don't go here.";
+- return "None of these IDs is running background work on this thread, so this request registers no wait for them. If the task already finished, read its output now. Otherwise pass the task ID of a background command or Monitor you started. Subagent, Agent tool, and Workflow runs already keep the thread working until they finish, and delegate_task IDs don't go here either.";
+ case "unmatched": {
+ const running = this.runningTaskIds ?? [];
-+ return `None of these IDs is running background work on this thread, so this request registers no wait for them. If the task already finished, read its output now. ${
++ return `None of these IDs is running background work on this thread, so this request registers no wait for them. If the task already finished, read its output now. Otherwise pass the task ID of a background command or Monitor you started. ${
+ running.length === 0
+ ? "No background command or Monitor is running on this thread."
+ : `Running here: ${running.join(", ")}.`
-+ } Subagent, Agent tool, and delegate_task IDs don't go here.`;
++ } Subagent, Agent tool, and Workflow runs already keep the thread working until they finish, and delegate_task IDs don't go here either.`;
+ }
}
}
@@ apps/server/src/peer/RemoteDelegation.ts: const make = Effect.gen(function* () {
text: run === undefined ? text : withExecutedModelNote(text, run.model, run.executedModel),
executedModel,
- ## apps/server/src/provider/agentContextBudget.json ##
-@@
- {
- "claudeSystemAppendBytes": 6295,
- "codexAdditionalContextBytes": 7689,
-- "mcpToolListJsonBytes": 62055
-+ "mcpToolListJsonBytes": 62072
- }
-
## docs/orchestration-v2/orchestrator-mcp-server.md (new) ##
@@
+# Orchestrator MCP Server
21: 104d60a660 = 21: 38f264ff13 fix(mobile): settings text drafts survive failed saves and never overwrite a changed value
22: 1d5ed764e9 ! 22: c0fdb949dc feat: one call and one strip show a lead's whole fleet
@@ apps/server/src/peer/RemoteDelegation.test.ts: it.effect("a task in this thread'
+ ).pipe(Effect.provide(NodeHttpServer.layerTest)),
+);
- ## apps/server/src/provider/agentContextBudget.json ##
-@@
- {
- "claudeSystemAppendBytes": 6295,
- "codexAdditionalContextBytes": 7689,
-- "mcpToolListJsonBytes": 62072
-+ "mcpToolListJsonBytes": 62455
- }
-
## apps/web/src/components/ChatView.tsx ##
@@ apps/web/src/components/ChatView.tsx: import { thrownErrorMessage } from "@t3tools/client-runtime/errors";
import { useGT, useMessages } from "gt-react";
23: f41eefc432 = 23: 4ac7424eaf fix(server): a task delegated to another project uses that project's role models
24: 0ac40828a4 ! 24: 79ccc263ae feat(mobile): a thread with children shows its fleet strip above the composer
@@ apps/mobile/src/features/threads/ThreadFleetStrip.tsx (new)
## apps/mobile/src/i18n/translations/de.json ##
@@
- "892f08d21b8e48a9": "{layers} per {kind, select, squash {Squash} merge {Merge} rebase {Rebase} fastForward {Fast-Forward} other {{method}}} in {base} mergen, sobald die Anforderungen erfüllt sind. Das kann sofort passieren.",
+ "201490988858b511": "zurückgezogen von {by}",
"3d4448e3c061f894": "Anderer Rechner",
"349587beaf00ce5e": "{title}, delegiert von {machine}, {count, plural, one {{count} Aufgabe} other {{count} Aufgaben}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} Aufgabe} other {{count} Aufgaben}}"
@@ apps/mobile/src/i18n/translations/de.json
## apps/mobile/src/i18n/translations/en.json ##
@@
- "892f08d21b8e48a9": "Merge {layers} into {base} using {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} once their requirements are met. This may happen immediately.",
+ "201490988858b511": "withdrawn by {by}",
"3d4448e3c061f894": "Other machine",
"349587beaf00ce5e": "{title}, delegated from {machine}, {count, plural, one {{count} task} other {{count} tasks}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} task} other {{count} tasks}}"
@@ apps/mobile/src/i18n/translations/en.json
## apps/mobile/src/i18n/translations/es.json ##
@@
- "892f08d21b8e48a9": "Fusionar {layers} en {base} con {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} cuando se cumplan sus requisitos. Puede ocurrir de inmediato.",
+ "201490988858b511": "retirada por {by}",
"3d4448e3c061f894": "Otra máquina",
"349587beaf00ce5e": "{title}, delegado desde {machine}, {count, plural, one {{count} tarea} other {{count} tareas}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} tarea} other {{count} tareas}}"
@@ apps/mobile/src/i18n/translations/es.json
## apps/mobile/src/i18n/translations/fr.json ##
@@
- "892f08d21b8e48a9": "Fusionner {layers} dans {base} avec {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} dès que leurs conditions sont remplies. Cela peut se produire immédiatement.",
+ "201490988858b511": "retirée par {by}",
"3d4448e3c061f894": "Autre machine",
"349587beaf00ce5e": "{title}, délégué depuis {machine}, {count, plural, one {{count} tâche} other {{count} tâches}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} tâche} other {{count} tâches}}"
@@ apps/mobile/src/i18n/translations/fr.json
## apps/mobile/src/i18n/translations/ja.json ##
@@
- "892f08d21b8e48a9": "要件が満たされたら、{layers} を{kind, select, squash {スカッシュ} merge {マージ} rebase {リベース} fastForward {早送り} other {{method}}}で {base} にマージします。すぐにマージされる場合があります。",
+ "201490988858b511": "{by} が取り下げ",
"3d4448e3c061f894": "別のマシン",
"349587beaf00ce5e": "{title}、{machine} から委任、{count, plural, other {{count} 件のタスク}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, other {{count} 件のタスク}}"
@@ apps/mobile/src/i18n/translations/ja.json
## apps/mobile/src/i18n/translations/ko.json ##
@@
- "892f08d21b8e48a9": "요구 사항이 충족되면 {layers}을(를) {kind, select, squash {스쿼시} merge {병합} rebase {리베이스} fastForward {빨리 감기} other {{method}}} 방식으로 {base}에 병합합니다. 바로 병합될 수도 있습니다.",
+ "201490988858b511": "{by}에서 철회함",
"3d4448e3c061f894": "다른 기기",
"349587beaf00ce5e": "{title}, {machine}에서 위임됨, {count, plural, other {작업 {count}개}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, other {작업 {count}개}}"
@@ apps/mobile/src/i18n/translations/ko.json
## apps/mobile/src/i18n/translations/pt-BR.json ##
@@
- "892f08d21b8e48a9": "Mesclar {layers} em {base} usando {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} quando os requisitos forem atendidos. Isso pode acontecer imediatamente.",
+ "201490988858b511": "retirada por {by}",
"3d4448e3c061f894": "Outra máquina",
"349587beaf00ce5e": "{title}, delegado de {machine}, {count, plural, one {{count} tarefa} other {{count} tarefas}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} tarefa} other {{count} tarefas}}"
@@ apps/mobile/src/i18n/translations/pt-BR.json
## apps/mobile/src/i18n/translations/ru.json ##
@@
- "892f08d21b8e48a9": "Слить {layers} в {base} методом {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}}, когда будут выполнены требования. Это может произойти сразу.",
+ "201490988858b511": "отозван: {by}",
"3d4448e3c061f894": "Другой компьютер",
"349587beaf00ce5e": "{title}, делегировано с {machine}, {count, plural, one {{count} задача} few {{count} задачи} many {{count} задач} other {{count} задачи}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} задача} few {{count} задачи} many {{count} задач} other {{count} задачи}}"
@@ apps/mobile/src/i18n/translations/ru.json
## apps/mobile/src/i18n/translations/sv.json ##
@@
- "892f08d21b8e48a9": "Merga {layers} in i {base} med {kind, select, squash {squash} merge {merge} rebase {rebase} fastForward {fast-forward} other {{method}}} när kraven är uppfyllda. Det kan ske direkt.",
+ "201490988858b511": "återkallad av {by}",
"3d4448e3c061f894": "Annan dator",
"349587beaf00ce5e": "{title}, delegerad från {machine}, {count, plural, one {{count} uppgift} other {{count} uppgifter}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, one {{count} uppgift} other {{count} uppgifter}}"
@@ apps/mobile/src/i18n/translations/sv.json
## apps/mobile/src/i18n/translations/zh.json ##
@@
- "892f08d21b8e48a9": "满足要求时使用{kind, select, squash {压缩合并} merge {合并} rebase {变基} fastForward {快进} other {{method}}}方式将 {layers} 合并到 {base}。这可能会立即发生。",
+ "201490988858b511": "已由 {by} 撤回",
"3d4448e3c061f894": "其他机器",
"349587beaf00ce5e": "{title},由 {machine} 委派,{count, plural, other {{count} 个任务}}",
- "88bcb7d812dfb32a": "{machine} · {count, plural, other {{count} 个任务}}"
@@ apps/mobile/vite.config.ts: const reactTests = [
"src/features/threads/UsageLimitRecoveryCard.test.tsx",
+ "src/features/threads/ThreadFleetStrip.test.tsx",
"src/features/threads/PendingUserInputCard.test.tsx",
+ "src/features/threads/HtmlRenderWebView.test.tsx",
"src/features/threads/NewTaskDraftRouteScreen.test.tsx",
- "src/native/NativeHeaderToolbar.test.tsx",
25: 3618eddcfa = 25: 5941211d5f feat(server): agent credit lines are removed from PR descriptions when the project asks
26: d0fd4e1c58 = 26: 8a15ef331b feat(server): mask secrets that reach command and tool output
27: cd7b6db0e5 = 27: 196840d33a feat(mobile): secret masking in tool output can be turned off and on from Maintenance
28: 1fcc2e9790 ! 28: 3f1b72bfeb feat(server): waits hear the caller's messages and corrections expire with their turn
@@ apps/server/src/peer/RemoteDelegation.ts: const make = Effect.gen(function* () {
runtimeMode: parentModes.runtimeMode,
interactionMode: parentModes.interactionMode,
- ## apps/server/src/provider/agentContextBudget.json ##
-@@
- {
- "claudeSystemAppendBytes": 6295,
- "codexAdditionalContextBytes": 7689,
-- "mcpToolListJsonBytes": 62455
-+ "mcpToolListJsonBytes": 62787
- }
- |
|
Fix-round range-diff, part 3 of 3: range-diff part 3 ## apps/server/src/relay/AgentAwarenessRelay.test.ts ##
@@ apps/server/src/relay/AgentAwarenessRelay.test.ts: const makeTestRelay = Effect.fnUntraced(function* (
isProviderInstanceEnabledForProject: unused,
29: f1f92154eb ! 29: f218fe19d1 feat(server): a delegated task's approval wakes the thread that started it, which can answer it
@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function*
+ ).pipe(reportSteppedDown);
}
let workspaceStrategy: OrchestrationV2ThreadLaunchWorkspaceStrategy | undefined;
- if (input.isolation === "worktree" && !isRetryOfAcceptedDelegation) {
+ if (
@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function* () {
runId: childRunEvent.event.payload.id,
});
@@ apps/server/src/peer/RemoteDelegation.ts: const make = Effect.gen(function* () {
),
);
- ## apps/server/src/provider/agentContextBudget.json ##
-@@
- {
- "claudeSystemAppendBytes": 6295,
- "codexAdditionalContextBytes": 7689,
-- "mcpToolListJsonBytes": 62787
-+ "mcpToolListJsonBytes": 63109
- }
-
## docs/orchestration-v2/orchestrator-mcp-server.md ##
@@ docs/orchestration-v2/orchestrator-mcp-server.md: child would ask for approval on every command. `orchestrator_capabilities`
lists `runtimeModes` only for a provider that offers some of the modes, and
30: 0409a827cb = 30: a7abdef213 fix(server): model settings an agent passes are refused, never silently dropped
31: 02c722d92d = 31: 798b5a40ba fix(server): a wait on a delegated task ends when its command hold runs out
32: 7c73069ff8 = 32: 33a87bc398 fix(server): create_threads and project defaults refuse model settings they would drop
33: a0de363f3a = 33: f7cb97a414 refactor(server): only a wait on delegated work keeps a command hold timer
34: 5a25d9186e ! 34: 79a38afbda feat(server): a task delegated to another environment can run in its own worktree there
@@ apps/server/src/peer/http.ts: export const layer = HttpApiBuilder.group(
}),
);
- ## apps/server/src/provider/agentContextBudget.json ##
-@@
- {
- "claudeSystemAppendBytes": 6295,
- "codexAdditionalContextBytes": 7689,
-- "mcpToolListJsonBytes": 63109
-+ "mcpToolListJsonBytes": 63226
- }
-
## apps/server/src/server.ts ##
@@ apps/server/src/server.ts: import * as PeerForwarding from "./peer/PeerForwarding.ts";
import * as RemoteDelegation from "./peer/RemoteDelegation.ts";
35: a9ceac7dc5 = 35: 39c493eb24 fix(server): Codex full access keeps asking when its own plugins or apps need an answer
36: 2b891df315 ! 36: bcb965cc57 feat(server): ACP threads list their running terminals as background commands
@@ packages/provider-acp/src/server/adapter.ts: export const makeAcpAdapterV2 = Eff
+ ...(sessionScoped ? { sessionScoped: true } : {}),
+ });
+ });
- let scheduleDeferredFinalize: (context: ActiveAcpTurn) => Effect.Effect<void> = () =>
- Effect.void;
- let refreshModelSwitchCapability: Effect.Effect<void> = Effect.void;
+ const withModelContextWindow = Effect.fnUntraced(function* (
+ sessionId: string,
+ usage: ThreadTokenUsageSnapshot,
@@ packages/provider-acp/src/server/adapter.ts: export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
? notePromptProgress()
: Effect.void,
37: 82919f193d ! 37: fb9713c018 fix(server): fork-only indexes no longer take upstream migration ids
@@ apps/server/src/orchestration-v2/ProjectionStore.ts: export const layer: Layer.L
json_extract(failure.payload_json, '$.failure.retryable') = 1
## apps/server/src/persistence/Migrations.test.ts ##
-@@ apps/server/src/persistence/Migrations.test.ts: import * as FileSystem from "effect/FileSystem";
- import * as Path from "effect/Path";
- import * as SqlClient from "effect/sql/SqlClient";
+@@ apps/server/src/persistence/Migrations.test.ts: import {
+ } from "@t3tools/shared/databaseMigrationLog";
+ import * as DatabaseMigrationProgress from "./DatabaseMigrationProgress.ts";
-import { migrationManifest, runMigrations } from "./Migrations.ts";
+import { hasPendingMigrations, migrationManifest, runMigrations } from "./Migrations.ts";
@@ apps/server/src/persistence/Migrations.test.ts: describe("runMigrations", () =>
const sql = yield* SqlClient.SqlClient;
## apps/server/src/persistence/Migrations.ts ##
-@@ apps/server/src/persistence/Migrations.ts: import Migration0108 from "./Migrations/108_AgentFeedback.ts";
- import Migration0109 from "./Migrations/109_IssueTrackerAccounts.ts";
- import Migration0110 from "./Migrations/110_Workflows.ts";
- import Migration0111 from "./Migrations/111_SupersededRunAttemptIndex.ts";
+@@ apps/server/src/persistence/Migrations.ts: import Migration0114 from "./Migrations/114_WorkflowRunIndexes.ts";
+ import Migration0115 from "./Migrations/115_WorkflowRunTags.ts";
+ import Migration0116 from "./Migrations/116_ForkHistoryMembership.ts";
+ import Migration0117 from "./Migrations/117_WorkflowMailSender.ts";
+import {
+ applyForkIndexes,
+ forgetForkLedgerRows,
@@ apps/server/src/persistence/Migrations.ts: export const runMigrations = Effect.f
yield* assertV2MigrationsCanRun(toMigrationInclusive);
}
@@ apps/server/src/persistence/Migrations.ts: export const runMigrations = Effect.fn("runMigrations")(function* ({
- }
- executedMigrations.push(...(yield* run({ loader: makeMigrationLoader(id) })));
- }
+ }).pipe(
+ Effect.ensuring(Option.isSome(progress) ? Ref.set(progress.value.current, null) : Effect.void),
+ );
- const migrations = executedMigrations.map(([id, name]) => `${id}_${name}`);
+ const forkIndexChanges =
+ hasPending && (toMigrationInclusive === undefined || toMigrationInclusive >= latestMigrationId)
38: 6e7487aaed = 38: 7593129a89 docs: describe the fork and its upstream nightly sync
39: 591bb12ea7 ! 39: bf73e57241 test(server): guard the fork's migration ids and desktop update feed
@@ apps/server/src/persistence/upstreamMigrations.json (new)
+ "108_AgentFeedback.ts": "6ea69fb60d2694b437451b1773cbda2d4bd3423d",
+ "109_IssueTrackerAccounts.ts": "8a87776600e9a08fc56ad9310204d16c8c223000",
+ "110_Workflows.ts": "39f588a564057e6d1567fd94d56f9e56793b7985",
-+ "111_SupersededRunAttemptIndex.ts": "ad2f9f4a3817e79a268f47462d28d6824554f2ab"
++ "111_SupersededRunAttemptIndex.ts": "ad2f9f4a3817e79a268f47462d28d6824554f2ab",
++ "112_LayoutCommandApprovals.ts": "27f00765c42cec72e114567ece0004b6983f41b8",
++ "113_WorkflowSkippedRuns.ts": "8aa8c4b673b7cf0e6f79502990a8542797b50089",
++ "114_WorkflowRunIndexes.ts": "42cc0c7ce5a718665eacc24857d999c5fdd93d9b",
++ "115_WorkflowRunTags.ts": "ba14165eccac0695261156c913417f225ab2bfa8",
++ "116_ForkHistoryMembership.ts": "b982de1530b3ccf4ad2e0a9e71a6a05ab6b4b50e",
++ "117_WorkflowMailSender.ts": "7183d31e564ec7f7ea9cb824a2f29232a118fdf1"
+}
## apps/server/src/persistence/upstreamMigrations.test.ts (new) ##
40: 2c53095de2 = 40: 8e0186e4a4 docs: regenerate the upstream migration manifest in each sync
41: a00e2dfd27 ! 41: 715a168705 fix(server): fork code reads upstream's forward thread scan and new migration head
@@ apps/server/src/peer/RemoteDelegation.ts: const make = Effect.gen(function* () {
read.thread.worktreePath === null
## apps/server/src/persistence/Migrations.test.ts ##
-@@ apps/server/src/persistence/Migrations.test.ts: import * as Path from "effect/Path";
- import * as SqlClient from "effect/sql/SqlClient";
+@@ apps/server/src/persistence/Migrations.test.ts: import {
+ import * as DatabaseMigrationProgress from "./DatabaseMigrationProgress.ts";
import { hasPendingMigrations, migrationManifest, runMigrations } from "./Migrations.ts";
+import { applyForkIndexes } from "./Migrations/ForkIndexes.ts";
42: c752a26a43 ! 42: ca98cfeb20 feat: scheduled tasks take full options everywhere and never overlap runs
@@ apps/server/src/mcp/OrchestratorMcpService.test.ts: import * as DateTime from "e
import * as Deferred from "effect/Deferred";
import * as Duration from "effect/Duration";
import * as Effect from "effect/Effect";
-+import * as FileSystem from "effect/FileSystem";
- import * as Fiber from "effect/Fiber";
+-import * as Fiber from "effect/Fiber";
+ import * as FileSystem from "effect/FileSystem";
++import * as Fiber from "effect/Fiber";
import * as Layer from "effect/Layer";
import * as Option from "effect/Option";
+ import * as Queue from "effect/Queue";
@@ apps/server/src/mcp/OrchestratorMcpService.test.ts: describe("OrchestratorMcpService provider resolution", () => {
defaults: {
readonly project: ScheduledTask["modelSelection"] | null;
@@ apps/server/src/mcp/OrchestratorMcpService.test.ts: describe("OrchestratorMcpSer
+ }),
+ );
+
++ it.effect("stores a model's normalized options on create and update", () =>
++ Effect.gen(function* () {
++ const inputs = yield* Ref.make<ReadonlyArray<ScheduledTaskUpsertInput>>([]);
++ const mcp = yield* OrchestratorMcpService.OrchestratorMcpService.pipe(
++ Effect.provide(
++ service(
++ masterRepository,
++ yield* Ref.make<ReadonlyArray<ScheduledTask["workspaceStrategy"]>>([]),
++ existing,
++ inputs,
++ {
++ project: existing.modelSelection,
++ providers: [
++ {
++ instanceId: ProviderInstanceId.make("claudeAgent"),
++ models: [
++ {
++ slug: "ultracode-model",
++ name: "ultracode-model",
++ isCustom: false,
++ capabilities: {
++ optionDescriptors: [
++ {
++ id: "effort",
++ label: "Reasoning",
++ type: "select",
++ options: [
++ { id: "high", label: "High" },
++ { id: "xhigh", label: "Extra High" },
++ ],
++ },
++ { id: "ultracode", label: "Ultracode", type: "boolean" },
++ ],
++ },
++ },
++ ],
++ } as never,
++ ],
++ },
++ ),
++ ),
++ );
++ const modelSelection = {
++ instanceId: ProviderInstanceId.make("claudeAgent"),
++ model: "ultracode-model",
++ options: [{ id: "effort", value: "ultracode" }],
++ };
++ yield* mcp.scheduleTask(client, {
++ projectId,
++ prompt: "Check the build",
++ schedule,
++ modelSelection,
++ });
++ yield* mcp.updateScheduledTask(client, { scheduledTaskId: existing.id, modelSelection });
++ assert.deepEqual(
++ (yield* Ref.get(inputs)).map((input) => input.modelSelection.options),
++ [
++ [
++ { id: "effort", value: "xhigh" },
++ { id: "ultracode", value: true },
++ ],
++ [
++ { id: "effort", value: "xhigh" },
++ { id: "ultracode", value: true },
++ ],
++ ],
++ );
++ }),
++ );
++
+ it.effect("stores an existing worktree as the path Git registered", () =>
+ Effect.gen(function* () {
+ const fileSystem = yield* FileSystem.FileSystem;
@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function*
+ `Provider instance ${selection.instanceId} is not configured here. orchestrator_capabilities lists providers and models.`,
+ );
+ yield* requireAdvertisedModel(provider, selection.model);
-+ yield* requireAdvertisedOptions(provider, selection.model, selection.options);
++ const options = yield* validateModelOptions(provider, selection.model, selection.options);
++ return options === undefined || options === selection.options
++ ? selection
++ : { ...selection, options };
+ },
+ );
+
@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function*
+ input.workspaceStrategy,
+ project.workspaceRoot,
+ );
-+ if (input.modelSelection !== undefined)
-+ yield* requireScheduledModel(
-+ input.modelSelection,
-+ scheduledModelCwd(requestedStrategy, project.workspaceRoot),
-+ );
++ const requestedModel =
++ input.modelSelection === undefined
++ ? undefined
++ : yield* requireScheduledModel(
++ input.modelSelection,
++ scheduledModelCwd(requestedStrategy, project.workspaceRoot),
++ );
const modelSelection =
- parent?.thread.modelSelection ?? (yield* projectDefaultModelSelection(project));
-+ input.modelSelection ??
++ requestedModel ??
+ parent?.thread.modelSelection ??
+ (yield* projectDefaultModelSelection(project));
+ const runtimeMode = yield* resolveRuntimeMode(limits.runtimeMode, input.runtimeMode);
@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function*
? parent.thread.id
: null;
+ let requestedStrategy = input.workspaceStrategy;
++ let requestedModel: ModelSelection | undefined;
+ if (input.modelSelection !== undefined || input.workspaceStrategy !== undefined) {
+ const { workspaceRoot } = yield* requireProject(existing.projectId);
+ requestedStrategy = yield* requireScheduledWorkspace(
@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function*
+ workspaceRoot,
+ );
+ if (input.modelSelection !== undefined)
-+ yield* requireScheduledModel(
++ requestedModel = yield* requireScheduledModel(
+ input.modelSelection,
+ scheduledModelCwd(requestedStrategy, workspaceRoot),
+ );
@@ apps/server/src/mcp/OrchestratorMcpService.ts: const make = Effect.gen(function*
workspaceStrategy,
- modelSelection: existing.modelSelection,
- runtimeMode: existing.runtimeMode,
-+ modelSelection: input.modelSelection ?? existing.modelSelection,
++ modelSelection: requestedModel ?? existing.modelSelection,
+ runtimeMode,
interactionMode: existing.interactionMode,
createdBy: existing.createdBy,
@@ apps/server/src/persistence/Migrations/ForkIndexes.ts: export const applyForkInd
+ return [...created, ...addedColumns];
});
- ## apps/server/src/provider/agentContextBudget.json ##
-@@
- {
- "claudeSystemAppendBytes": 6295,
- "codexAdditionalContextBytes": 7689,
-- "mcpToolListJsonBytes": 63226
-+ "mcpToolListJsonBytes": 64072
- }
-
## apps/server/src/scheduledTasks/ScheduledTaskService.interval.test.ts ##
@@
import * as NodeCrypto from "@effect/platform-node/NodeCrypto";
43: 91a74cf98b = 43: 806d9c6322 test(server): the numbered-head ledger case starts from upstream's full head
44: 78d467cda3 ! 44: 70deffa6c5 feat(server): scheduled tasks can run an owner-set gate command before each run
@@ apps/server/src/policy/ManagedPolicy.ts: export const loadedPolicy = Effect.fn("
*/
export function deniedBy(
policy: Pick<ManagedPolicy["Service"], "document">,
-- capability: "webhookTasks" | "telemetry" | "previewTunnel",
-+ capability: "webhookTasks" | "taskGates" | "telemetry" | "previewTunnel",
+- capability: "webhookTasks" | "telemetry" | "previewTunnel" | "worktreeLayoutCommands",
++ capability:
++ | "webhookTasks"
++ | "taskGates"
++ | "telemetry"
++ | "previewTunnel"
++ | "worktreeLayoutCommands",
): string | undefined {
return policy.document?.limits?.[capability] === false ? policy.document.organization : undefined;
}
@@ apps/server/src/policy/policyTemplates.ts: const policies = (): ReadonlyArray<Po
## apps/server/src/provider/agentContextBudget.json ##
@@
{
- "claudeSystemAppendBytes": 6295,
- "codexAdditionalContextBytes": 7689,
-- "mcpToolListJsonBytes": 64072
-+ "mcpToolListJsonBytes": 64082
+- "claudeSystemAppendBytes": 6245,
+- "codexAdditionalContextBytes": 7639,
+- "mcpToolListJsonBytes": 62055
++ "claudeSystemAppendBytes": 6295,
++ "codexAdditionalContextBytes": 7689,
++ "mcpToolListJsonBytes": 64428
}
## apps/server/src/scheduledTasks/ScheduledTaskService.gate.test.ts (new) ##
@@ packages/contracts/src/managedPolicy.ts: const CAPABILITY_LABELS = {
+ taskGates: "scheduled task gate commands",
browserCookieImport: "importing browser cookies",
previewTunnel: "opening this machine's local servers on other devices",
- } as const;
+ worktreeLayoutCommands: "project worktree layout commands",
## packages/contracts/src/orchestratorMcp.ts ##
@@ packages/contracts/src/orchestratorMcp.ts: export const OrchestratorMcpScheduleTaskInput = Schema.Struct({
45: b9c827506e ! 45: 88d07fce32 feat(server): trim bulky payloads to keep the state database small
@@ Metadata
## Commit message ##
feat(server): trim bulky payloads to keep the state database small
+ ## apps/server/src/orchestration-v2/CommandOutputHub.ts ##
+@@ apps/server/src/orchestration-v2/CommandOutputHub.ts: import * as KnownSecrets from "../secrets/KnownSecrets.ts";
+ import { SecretRedactionStream } from "../secrets/secretRedaction.ts";
+ import * as EventSink from "./EventSink.ts";
+ import * as ProjectionStore from "./ProjectionStore.ts";
++import { isTruncatedCommandOutput } from "./payloadRetention.ts";
+
+ /** Output bypasses orchestration events; expanded rows receive tails, coalesced appends, then persisted output. */
+
+@@ apps/server/src/orchestration-v2/CommandOutputHub.ts: function persistedCommandOutput(output: string | undefined): {
+ const normalized = normalizeTerminalOutput(source);
+ return {
+ text: normalized.text,
+- truncated: normalized.truncated || source.length !== output.length,
++ truncated:
++ normalized.truncated || source.length !== output.length || isTruncatedCommandOutput(output),
+ };
+ }
+
+
## apps/server/src/orchestration-v2/EventSink.ts ##
@@ apps/server/src/orchestration-v2/EventSink.ts: import { replayAndBufferProjectedLiveEvents } from "./LiveStreamBudget.ts";
import type { UnsequencedProjectEvent } from "../persistence/OrchestrationEventStore.ts";
@@ apps/server/src/orchestration-v2/EventSink.ts: const layerBase: Layer.Layer<
.pipe(Effect.map((payload) => ({ ...event, payload })))
## apps/server/src/orchestration-v2/ProjectionMaintenance.test.ts ##
-@@
- import { assert, it } from "@effect/vitest";
- import {
- EventId,
-+ MessageId,
- NodeId,
- PlanId,
- type OrchestrationV2AppThread,
@@ apps/server/src/orchestration-v2/ProjectionMaintenance.test.ts: import * as EventSink from "./EventSink.ts";
import * as EventStore from "./EventStore.ts";
import * as ProjectionMaintenance from "./ProjectionMaintenance.ts";
@@ apps/server/src/orchestration-v2/ProjectionMaintenance.test.ts: const layerTest
);
const providerInstanceId = ProviderInstanceId.make("codex");
-@@ apps/server/src/orchestration-v2/ProjectionMaintenance.test.ts: it.effect("keeps an anchor that a row appended during the pass borrows from", ()
- }),
- ).pipe(Effect.provide(layerTest)),
+@@ apps/server/src/orchestration-v2/ProjectionMaintenance.test.ts: it.effect("an interrupted purge leaves a stream that still decodes", () =>
+ assert.equal(Array.from(stream).at(-1)?.event.type, "thread.deleted");
+ }).pipe(Effect.provide(layerTest)),
);
+
+function retentionItems(
@@ apps/server/src/orchestration-v2/ProjectionMaintenance.test.ts: it.effect("keeps
## apps/server/src/orchestration-v2/ProjectionMaintenance.ts ##
@@ apps/server/src/orchestration-v2/ProjectionMaintenance.ts: import {
- EVENT_LOG_PRUNED_THROUGH,
- } from "../persistence/OrchestrationEventStore.ts";
- import * as ProjectionStore from "./ProjectionStore.ts";
+ OPEN_REMOTE_TASK_CONDITION,
+ REMOTE_TASK_OWED_PARENT_DONE_CONDITION,
+ } from "./remoteParentDone.ts";
+import { COMMAND_OUTPUT_LIMIT, truncateCommandOutput } from "./payloadRetention.ts";
export class ProjectionMaintenanceError extends Schema.TaggedError<ProjectionMaintenanceError>()(
"ProjectionMaintenanceError",
@@ apps/server/src/orchestration-v2/ProjectionMaintenance.ts: export interface ProjectionMaintenanceV2Shape {
- },
- ProjectionMaintenanceError
- >;
+ readonly purgeDeletedThread: (
+ threadId: ThreadId,
+ ) => Effect.Effect<number, ProjectionMaintenanceError>;
+ /**
+ * Truncates long command output written before truncation existed, then drops the tool
+ * details of threads archived longer than the retention. Messages and thread rows stay.
@@ apps/server/src/orchestration-v2/ProjectionMaintenance.ts: export interface Proj
}
export class ProjectionMaintenanceV2 extends Context.Service<
-@@ apps/server/src/orchestration-v2/ProjectionMaintenance.ts: const RETAINED_EVENT_HISTORY = Duration.days(1);
- const PAGE_SIZE = 50;
- const REFERENCE_SCAN_WINDOW = 1000;
+@@ apps/server/src/orchestration-v2/ProjectionMaintenance.ts: export const DELETED_THREAD_CONTENT_TABLES = [
+ "projection_thread_messages",
+ ] as const;
+// An archived thread keeps its conversation; its tool details go once it stays archived this long.
+const ARCHIVED_DETAIL_RETENTION = Duration.days(14);
@@ apps/server/src/orchestration-v2/ProjectionMaintenance.ts: export const layer: L
),
);
-- return ProjectionMaintenanceV2.of({ pruneEventStore });
+- return ProjectionMaintenanceV2.of({ pruneEventStore, purgeDeletedThread });
+ // A malformed row must not fail the whole pass: json_extract raises on invalid JSON.
+ const longOutput = sql`CASE WHEN json_valid(payload_json) THEN
+ json_type(payload_json, '$.output') = 'text'
@@ apps/server/src/orchestration-v2/ProjectionMaintenance.ts: export const layer: L
+ ),
+ );
+
-+ return ProjectionMaintenanceV2.of({ pruneEventStore, trimPayloads });
++ return ProjectionMaintenanceV2.of({ pruneEventStore, purgeDeletedThread, trimPayloads });
}),
);
+ ## apps/server/src/orchestration-v2/http.test.ts ##
+@@ apps/server/src/orchestration-v2/http.test.ts: const decodeTranscript = Schema.decodeUnknownEffect(
+
+ const now = DateTime.makeUnsafe("2026-09-29T00:00:00.000Z");
+ const environmentId = EnvironmentId.make("source-بيئة");
+-const output = "Full tool output. ".repeat(4_000);
++const output = "Full tool output. ".repeat(3_000);
+ const thread = Schema.decodeSync(OrchestrationV2AppThread)({
+ id: "source-thread",
+ projectId: "source-project",
+@@ apps/server/src/orchestration-v2/http.test.ts: it.effect("exports full history with size, scope, and missing-thread checks", ()
+ 0,
+ );
+ const boundaryOutput = "界" + "x".repeat(PROVIDER_SEND_TURN_MAX_FILE_BYTES - baseSize - 3);
++ const sql = Context.get(services, SqlClient.SqlClient);
++ const commandItemId = items.find((item) => item.type === "command_execution")!.id;
++ const setCommandPayload = (payload: Statement.Fragment) => sql`
++ UPDATE orchestration_v2_projection_turn_items SET payload_json = ${payload}
++ WHERE turn_item_id = ${commandItemId}
++ `;
+ for (const [suffix, expectedStatus] of [
+ ["", 200],
+ ["x", 400],
+ ] as const) {
+- yield* eventSink.write({
+- events: [
+- {
+- id: EventId.make(`boundary-${expectedStatus}`),
+- type: "turn-item.updated",
+- threadId: thread.id,
+- occurredAt: now,
+- payload: {
+- ...items.find((item) => item.type === "command_execution")!,
+- output: boundaryOutput + suffix,
+- },
+- },
+- ],
+- });
++ // Written to the row, as the sink would truncate an output this long before storing it.
++ yield* setCommandPayload(sql`json_set(payload_json, '$.output', ${boundaryOutput + suffix})`);
+ const response = yield* read(thread.id);
+ expect(response.status).toBe(expectedStatus);
+ if (expectedStatus === 200) continue;
+@@ apps/server/src/orchestration-v2/http.test.ts: it.effect("exports full history with size, scope, and missing-thread checks", ()
+ });
+ }
+
+- const sql = Context.get(services, SqlClient.SqlClient);
+- const commandItemId = items.find((item) => item.type === "command_execution")!.id;
+- const setCommandPayload = (payload: Statement.Fragment) => sql`
+- UPDATE orchestration_v2_projection_turn_items SET payload_json = ${payload}
+- WHERE turn_item_id = ${commandItemId}
+- `;
+ const fill = (bytes: number) => sql`printf('%.*c', ${bytes}, 'x')`;
+ // Stored bytes the export drops do not count, and neither does a row SQLite cannot parse:
+ // only what the export keeps can reject it.
+
## apps/server/src/orchestration-v2/payloadRetention.ts (new) ##
@@
+import type { OrchestrationV2TurnItem } from "@t3tools/contracts";
@@ apps/server/src/orchestration-v2/payloadRetention.ts (new)
+export const COMMAND_OUTPUT_LIMIT = 64 * 1024;
+const COMMAND_OUTPUT_HEAD = 16 * 1024;
+const COMMAND_OUTPUT_TAIL = 16 * 1024;
++const MARKER_START = "\n\n[… ";
++const MARKER_END = " characters …]\n\n";
+
+/** Keeps the head and tail of a long output, with a marker that gives the original size. */
+export function truncateCommandOutput(output: string): string {
@@ apps/server/src/orchestration-v2/payloadRetention.ts (new)
+ const removed = output.length - COMMAND_OUTPUT_HEAD - COMMAND_OUTPUT_TAIL;
+ return (
+ output.slice(0, COMMAND_OUTPUT_HEAD) +
-+ `\n\n[… ${removed.toLocaleString("en-US")} characters removed: the full output was ` +
-+ `${output.length.toLocaleString("en-US")} characters …]\n\n` +
++ `${MARKER_START}${removed.toLocaleString("en-US")} characters removed: the full output was ` +
++ `${output.length.toLocaleString("en-US")}${MARKER_END}` +
+ output.slice(-COMMAND_OUTPUT_TAIL)
+ );
+}
+
++/** Whether `truncateCommandOutput` cut this output: its marker sits between the kept head and tail. */
++export function isTruncatedCommandOutput(output: string): boolean {
++ return (
++ output.startsWith(MARKER_START, COMMAND_OUTPUT_HEAD) &&
++ output.startsWith(MARKER_END, output.length - COMMAND_OUTPUT_TAIL - MARKER_END.length)
++ );
++}
++
+export function withTruncatedCommandOutput(item: OrchestrationV2TurnItem): OrchestrationV2TurnItem {
+ if (item.type !== "command_execution" || item.output === undefined) return item;
+ const output = truncateCommandOutput(item.output);
@@ apps/server/src/orchestration-v2/payloadRetention.ts (new)
## apps/server/src/persistence/DatabaseStorage.test.ts ##
@@ apps/server/src/persistence/DatabaseStorage.test.ts: const compactionLayer = (
- Layer.provide(
Layer.succeed(ProjectionMaintenance.ProjectionMaintenanceV2, {
pruneEventStore,
+ purgeDeletedThread: () => Effect.succeed(0),
+ trimPayloads: () =>
+ Effect.succeed({ truncatedOutputCount: 0, trimmedThreadCount: 0, trimmedItemCount: 0 }),
}),
@@ apps/server/src/persistence/DatabaseStorage.ts: const make = Effect.gen(function
+ yield* reclaimPages(Number.POSITIVE_INFINITY, Effect.andThen(Effect.yieldNow, betweenPages));
const completedAt = yield* Clock.currentTimeMillis;
yield* fs.writeFileString(compactedAtPath, String(completedAt)).pipe(Effect.ignore);
-- if (result.deletedEventCount > 0 || result.deletedReceiptCount > 0) {
-- yield* Effect.logInfo("Compacted orchestration history", result);
-+ if (
+ if (
+ trimmed.truncatedOutputCount > 0 ||
+ trimmed.trimmedItemCount > 0 ||
-+ result.deletedEventCount > 0 ||
-+ result.deletedReceiptCount > 0
-+ ) {
+ result.deletedEventCount > 0 ||
+ result.deletedReceiptCount > 0 ||
+ result.purgedRowCount > 0
+ ) {
+- yield* Effect.logInfo("Compacted orchestration history", result);
+ yield* Effect.logInfo("Compacted orchestration history", { ...trimmed, ...result });
}
}).pipe(
46: b180f1dc7c = 46: 50f0157180 docs: sync upstream nightlies by rebasing the fork's commits
47: 03adf152a9 = 47: 57c859113c docs: fork syncs land on main through fork-land |
|
Review of record: 57c8591 mergeable Cross-family review (Gemini 4 Neon, high) found one P1 and two P3 on 8aee74e. The fix round, folded into the fork commits, resolves the P1 (deleted parent's remote tasks survive the purge until stopped and told parent-done), the P3 on scheduled-task normalized options, and the three server tests red since b9c8275. The lead checked the interdiff 8aee74e..57c8591 (9 server files, only these fixes), the structure (v0.1.12-nightly.20261125.5230 + 47 linear commits, no merge, none dropped) and reran ProjectionMaintenance, CommandOutputHub, http and RemoteDelegation tests on the head: 118/118 passed. Follow-up, not blocking: PeerWorktreeBase rejects multi-repo plain project folders that upstream pingdotgg#42261 now supports locally. |
Rebases the fork's 47 commits onto upstream nightly
v0.1.12-nightly.20261125.5230(ca81b7b, 293 commits past the old base). No merge commit; the sync adds no commit of its own (generated files were folded into the fork commits that own them).03adf152a95f4322e40e4b34deef955e03b6f5e2v0.1.12-nightly.20261124.5178(8aff2f9)57c859113c80b027cfcbf69bb52916dd748c91fe(after the review fix round; first pushed head 8aee74e)git cherryfound no fork commit already upstream; 47 in, 47 out).Conflicts and how each was resolved
orchestration-v2/ThreadSettlementService.ts,ThreadSettlementService.test.tsisDelegatedAppThreadthread (incl. a task delegated from a linked machine) once its own work is done. Lead/owner decision: keep the fork rule for this sync — a subagent settles as before, adelegatedFromthread settles only oncedelegatedFrom.parentDoneAtis set (settlesWithParent); thethread.metadata-updatedtrigger stays. Upstream's new test "settles a finished task delegated from a linked environment…" is adapted inside this commit: its task now carriesparentDoneAtand the title says "once its parent there is done".isDelegatedAppThreadstays in contracts (other upstream code uses it); only its import in this file goes. Aligning with upstream's rule is a separate follow-up.Orchestrator.ts,ThreadDeletion.ts,ThreadDeletion.test.tshasDelegatedChildhelper (same semantics, no duplicated predicate); upstream's new tests (RemoteDelegation, RestartContinuation) kept and passing. Deletion: upstream 91f0b32 (pingdotgg#42119) adds athread-content.purgeeffect that deletesorchestration_v2_projection_subagents, which the fork'sdelegated-tasks.stopreads, so the stop is queued after the cleanup and before the purge (comment and test order updated).mcp/OrchestratorMcpService.ts,mcp/toolkits/project/handlers.ts,handlers.test.ts,agentContextBudget.jsonvalidateModelOptionsfor t3_thread_launch / delegate_task, which supersedes the fork'srequireAdvertisedOptions(and also normalizes legacy ultracode). Took upstream's function and call sites, dropped the fork helper, kept the fork's literal-template refusal and its tests; both launch tests (upstream's options test, the fork's placeholder test) kept. The later fork commit c752a26 (scheduled tasks) called the removed helper; it now callsvalidateModelOptions(fixup inside that commit).orchestration-v2/ThreadManagementService.tspackages/provider-acp/src/server/adapter.tsemitProviderEvent+publishCommandRoster, followed by upstream's newwithModelContextWindow/publishProviderThreadState/projectExtractedContextUsage(which emit through the fork's wrapper). AllruntimeRestartRequiredsites use the fork'srequireRuntimeRestart.persistence/Migrations.tsapplyForkIndexes/forgetForkLedgerRowsrun after it as before.policy/ManagedPolicy.tsdeniedBycapability union: fork'staskGates+ upstream'sworktreeLayoutCommands.ProjectionMaintenance.ts,ProjectionMaintenance.test.ts,DatabaseStorage.ts,DatabaseStorage.test.tspruneEventStore,purgeDeletedThreadandtrimPayloads; the compaction log fires on any of trimmed/deleted/purged counts; both test sets kept.i18n/translations/*.jsonSemantic (non-textual) fix: upstream fdce61c (pingdotgg#42212) settles Codex commands whose shell already exited as cancelled after their turn, but did not refresh the fork's background-command roster (b4b34c6's
syncRetainedCommandRoster), so a finished command stayed listed inpendingBackgroundTasks(upstream's new test "records a command's late result after its run stopped listening" failed). One line insettleExitedCommandItemsresyncs the roster, folded into b4b34c6.Auto-merged without conflict but checked: OrchestratorMcpService.ts between upstream 62d6abf / 31d95f8 (local worktree base for multi-repo projects) and fork 5a25d91 (worktree in another environment); both behaviours kept,
OrchestratorMcpService.test.tspasses. One duplicateFileSystemimport (both sides added it) removed inside c752a26.Fix round (cross-family review)
Each fix is folded into the fork commit named, so the branch is still the tag plus the same 47 commits.
thread-content.purgedeleted a deleted parent'sorchestration_v2_projection_subagentsrows while RemoteDelegation still needed them asynchronously: an open remote/cross-project task it must still stop there, or a task still owed parentDone.ProjectionMaintenance's purgeable-thread selection now skips a deleted thread that still has such a row; the periodic sweep takes it once RemoteDelegation recordsstoppedThere/parentDoneThere. The predicates are shared, not copied:OPEN_REMOTE_TASK_CONDITION(moved verbatim out ofProjectionStore.getOpenRemoteDelegatedTasks) andREMOTE_TASK_OWED_PARENT_DONE_CONDITION, both inremoteParentDone.ts. New test "a deleted parent keeps its remote tasks until they are stopped and told there": red without the fix (the delete's purge removed 6 rows), green with it. Limit: a deleted parent whose peer never answers (unreachable or never re-linked) keeps its content until that peer answers, which is the pre-fix(server): deleting a thread actually removes its history pingdotgg/t3code#42119 status quo; no timeout was added.CommandOutputHubreportedtruncated: falsefor cut output.payloadRetention.tsnow exportsisTruncatedCommandOutputnext totruncateCommandOutput(one source for the marker text), andpersistedCommandOutputreports truncated when the stored output carries that marker. The two CommandOutputHub tests pass unchanged.http.test"exports full history…": the fork deliberately stores trimmed output, so that test's fixture output is now underCOMMAND_OUTPUT_LIMIT(3,000 repeats instead of 4,000), and its size-boundary rows are written straight to the projection row instead of through the sink, which would truncate them. The 200/400 size checks therefore still exercise a real over-limit row.requireScheduledModelcallvalidateModelOptionsbut drop its result. It now returns the normalized selection, andschedule_taskcreate and update store it, as delegate_task and t3_thread_launch do. New test "stores a model's normalized options on create and update" (legacyultracodeeffort is stored asxhigh+ultracode: true): red without the fix, green with it.Not in this round: the review's P3 on PeerWorktreeBase with multi-repo folders (the lead files it as a follow-up).
Generated files
upstreamMigrations.json: regenerated withT3_UPSTREAM_REF=v0.1.12-nightly.20261125.5230 T3_UPDATE_UPSTREAM_MIGRATIONS=1, adds upstream 112–117; folded into 591bb12.agentContextBudget.json: regenerated (folded into 78d467c): 6295 / 7689 / 64428 bytes. The fork's own share is unchanged (+50 / +50 / +2373 over upstream, as before); the rise against fork/main (+346 bytes of MCP tool list) is upstream's. Needs labelagent-context-increase.Checks (head
57c859113c80b027cfcbf69bb52916dd748c91fe,env -i, Node 26.13.1,TMPDIRnon-hidden,T3_UPSTREAM_REFset)vp run i18n:check0 ·vp check0 ·vp run typecheck0 ·vp run knip:check0vp run --filter t3 test): 10347 passed, 12 failed, 17 skipped. The 12 failures are exactly the ones that also fail on the tag itself in the same environment (AntigravityInstallation 1, CodexChatGptAuth 2, CodexManagedRuntime 4, GrokProvider 5): upstream's. The 3 earlier fork failures are fixed.apps/server): all green except desktop (DesktopBackendRecoveryWorker.cjsnot built; fails identically on the tag) and web (3 FilePreviewPanel browser tests; fail identically on the tag).statev2.sqlite(8.9 GB, ledger 111), on head 8aee74e (this round touches no migration): migrated to 117; ledger equals upstream's 117 numbered migrations; both fork indexes present;PRAGMA quick_checkok. Copy removed.Range-diff
Summary below. The full
git range-diff 8aff2f9061..03adf152a9 v0.1.12-nightly.20261125.5230..57c859113c(104 KB, over GitHub's body limit) is in the three comments after the review; the first two comments hold the range-diff of the first head 8aee74e.range-diff summary (47 commits: 26 identical, 21 changed)