Skip to content

Adopt typed results, multi-value secrets, and multi-repo projects in the adapter - #96

Merged
pmwoz merged 1 commit into
mainfrom
t3/adopt-t3-9f9ebf6
Nov 21, 2026
Merged

pmwoz merged 1 commit into
mainfrom
t3/adopt-t3-9f9ebf6

Conversation

@pmwoz

@pmwoz pmwoz commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Adopts the four opportunities listed in #95 in t3-adapter.md and bumps the plugin to 0.17.4. No upstream file changes, so drift.json is untouched.

What changed

  • Resume, message, or queue a follow-up (O1). A send to a child can carry outputSchema. T3 queues it instead of steering it, and the child returns the result with t3_submit_output. After the completion wakes the root, it reads output with t3_thread_wait and the send's runId. A run that ended without submitting has no output.
  • Separate top-level threads (O1, O3). A launch with message and outputSchema returns data that t3_thread_wait reads as output with untilOutput: true. generateTitle: true names the thread from message. title is still required.
  • Secrets (O2). Up to 8 values from one place, such as a test account's email and password, go in one card with fields, and secret: false for a value the card may show. Fields always arrive as files, so value and delivery: "secretRef" are left out. The result's files maps each field name to its path.
  • Several repositories in one project (O4, new bullet after the merged-dependency rule). When the prompt carries <workspace_folders>, a run can change a dependency in another listed repository from its own thread. Git and commits run per repository. pull_request_create opens a PR only from the thread's root folder, so a PR in another repository is opened with the resolved forge inside it, and the root links it.

Facts taken from T3 at 9f9ebf6: runOutput.ts (schema checks, the instructions appended to the turn), docs/orchestration-v2/orchestrator-mcp-server.md (a send that asks for a result is queued, a turn can end without submitting), OrchestratorMcpService.ts (fields forces file delivery and rejects value and secretRef), the t3_thread_launch handler (generateTitle needs a message or attachments), docs/user/multi-repo-projects.md, and the pull_request_create handler (cwd is the thread's worktree or the project root).

Checks

bun run check, bun test tools --timeout 60000 (40 pass), and bun run typecheck pass. With the default 5 s limit, three sync fixture tests time out while the machine runs at a load average above 100. They pass with the longer limit and do not touch the adapter.

@pmwoz
pmwoz merged commit 09a211b into main Nov 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant