Skip to content

fix(mcp): archived thread list and scheduled-task default model - #26

Merged
samnab merged 2 commits into
devfrom
fix/api-e2e-findings
Oct 30, 2026
Merged

samnab merged 2 commits into
devfrom
fix/api-e2e-findings

Conversation

@samnab

@samnab samnab commented Oct 30, 2026

Copy link
Copy Markdown
Owner

The isolated /mcp end-to-end run for API waves 3–5 found two defects.

  • t3_thread_list with archived: true always returned an empty list. An archive snapshot keeps its rows in archivedThreads, but listProjectThreads read only threads. It now reads both; the location filter already decides which one is filled.
  • schedule_task from a client outside a thread refused with "no default model" unless the project record itself had one. It ignored the environment default and per-project settings. It now resolves the project's effective default with resolveProjectSettings, the same way t3_thread_launch does.

Each fix has a regression test that fails before the change and passes after. ThreadManagementService, OrchestratorMcpService, core toolkit and context-budget tests pass, and the server typecheck is clean.

🤖 Generated with Claude Code

samnab and others added 2 commits October 30, 2026 13:11
An archive snapshot keeps its rows in archivedThreads, but
listProjectThreads read only threads, so t3_thread_list archived:true was
always empty. Found by the isolated /mcp E2E run; ThreadManagementService
tests pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
schedule_task from a client outside a thread read only the project
record's default model, so it refused even when a global or project
settings default was set. It now resolves the project's effective
default like t3_thread_launch does. Found by the isolated /mcp E2E run;
OrchestratorMcpService, core and context-budget tests pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M labels Oct 30, 2026
@samnab
samnab merged commit d51136a into dev Oct 30, 2026
7 of 18 checks passed
samnab added a commit that referenced this pull request Nov 1, 2026
Brings fork PRs #15-#26 (MCP read-back and agent tooling) onto dev,
which already carries upstream 15fe283.

Resolutions:
- ThreadManagementService: list archived threads (origin) and keep the
  side-chat / isListedThreadLineage filter (upstream).
- PeerMcpClient: keep undeclared-argument preflight via startSession
  (origin) and store the session before the first call so it outlives a
  waiting or cancelled request (upstream pingdotgg#26567); statusFailure covers
  401/403/other.
- PeerMcpClient.test (add/add): both suites kept; upstream's scripted
  renew test now accounts for the tools/list discovery request.
- PeerForwarding.test, linkOrigin.test: both new mocks kept, grouped in
  one Layer.mergeAll to stay within pipe's 20-argument limit.
- OrchestratorMcpService.activity.test: Effect.succeedSome per upstream
  lint rule.
- agentContextBudget.json: measured values after merge.
- No migrations added by origin/dev; no references to renamed symbols.

Checks: vp run typecheck clean in apps/server, packages/contracts,
packages/shared, packages/client-runtime, apps/web, apps/mobile.
vp test run ThreadManagementService.test, src/mcp, src/peer,
src/persistence, AgentContextBudget.test: 67 files, 570 passed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant