Repository navigation
fix(tots): close the MCP gaps Tots hit on 24 Nov - #92
Merged
Merged
Conversation
- t3_tot_instructions reads or replaces a Tot's saved instructions and re-renders its AGENTS.md. A Tot reaches only its own; Home and a person at a client outside any thread reach any. Capped at 20,000 characters. - schedule_task takes an optional modelSelection on create and update. A task given one pins it, so bound runs use it instead of following the thread's model (new model_pinned column, migration 113). The full opencode-go/glm-5.3 is refused; flash variants are fine. - t3_project_update saves defaultModelSelection to the project's Settings override, where new threads read it, and the reply reports what is stored. - list_scheduled_tasks with no projectId, called by a Tot, also lists tasks in the projects it owns and tasks it created, and notes that sidebar groups are not covered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CarsonJF
force-pushed
the
feat/tot-mcp-gaps
branch
from
November 25, 2026 04:00
47f5bb5 to
eaebc5a
Compare
CarsonJF
added a commit
that referenced
this pull request
Nov 25, 2026
- t3_tot_instructions reads or replaces a Tot's saved instructions and re-renders its AGENTS.md. A Tot reaches only its own; Home and a person at a client outside any thread reach any. Capped at 20,000 characters. - schedule_task takes an optional modelSelection on create and update. A task given one pins it, so bound runs use it instead of following the thread's model (new model_pinned column, migration 113). The full opencode-go/glm-5.3 is refused; flash variants are fine. - t3_project_update saves defaultModelSelection to the project's Settings override, where new threads read it, and the reply reports what is stored. - list_scheduled_tasks with no projectId, called by a Tot, also lists tasks in the projects it owns and tasks it created, and notes that sidebar groups are not covered. Co-authored-by: Custom Nightly Repair <repair@local> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
CarsonJF
added a commit
that referenced
this pull request
Nov 25, 2026
- t3_tot_instructions reads or replaces a Tot's saved instructions and re-renders its AGENTS.md. A Tot reaches only its own; Home and a person at a client outside any thread reach any. Capped at 20,000 characters. - schedule_task takes an optional modelSelection on create and update. A task given one pins it, so bound runs use it instead of following the thread's model (new model_pinned column, migration 113). The full opencode-go/glm-5.3 is refused; flash variants are fine. - t3_project_update saves defaultModelSelection to the project's Settings override, where new threads read it, and the reply reports what is stored. - list_scheduled_tasks with no projectId, called by a Tot, also lists tasks in the projects it owns and tasks it created, and notes that sidebar groups are not covered. Co-authored-by: Custom Nightly Repair <repair@local> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tots hit four MCP gaps on 24 Nov. This PR closes all four, each with tests.
What changed
renderTotAgentsrewrites thet3-tot-instructionsblock from the savedinstructions, so hand edits were lost. The newt3_tot_instructionstool reads the instructions, or replaces them wheninstructionsis passed, throughTotService.update, which re-renders AGENTS.md.schedule_tasktakesmodelSelectionon create and on update (scheduledTaskId). A task given one is markedmodelPinned, so bound runs send that model instead of following the thread's current one. Without it, behaviour is unchanged (fix(server): thread-bound scheduled tasks run on the thread's current provider pingdotgg/t3code#18467). This needs a newmodel_pinnedcolumn (migration 113, idempotent; CUSTOM.md's migration-id note is updated). The fullopencode-go/glm-5.3is refused; flash variants are allowed. The task summary now includesmodelSelection.t3_project_updatereporteddefaultModelSelection: null. Settings are folded (projectSettingsFolded), so the project row'sdefault_model_selection_jsonis never read again. The update wrote only to that row, and new threads never saw it. It now also writes the project's Settings override (null clears it). The reply reports the stored override even when a disabled provider or a hidden model keeps it from taking effect, which was a second way it showed null.list_scheduled_tasksreturned[]. A Tot's thread lives in the Tot's own project, so the default listing never reached the projects it owns. The "Custom nightly failure monitor" (nocreated_by_tot_id) is inT3 Code (fork), which T3Bot owns. Now, when a Tot omitsprojectId, the list also covers tasks in projects its scope names on this environment (all of them for scopeall) and tasks it created. Anotesays that sidebar groups are not resolved, so their projects need an explicitprojectId.Overlap with
feat/usage-limit-fallbackMost of the scheduled-task change stays in the MCP and schema layers. Two parts touch
ScheduledTaskService.tsand may conflict with the sibling branch:model_pinnedcolumn added to the row type, SELECTs, INSERT and ON CONFLICT.sendBound:...(active.modelPinned === true ? { modelSelection: active.modelSelection } : {}).Both are small and mechanical to rebase. Failure and fallback logic is not touched.
agentContextBudget.json: the tool list grows by 647 bytes (71469 → 72116).Checks
T3CODE_*unset: OrchestratorMcpService, the project, tots and orchestrator toolkit handlers, totAgents, ScheduledTaskService, the 113 migration, the migration histories, AgentContextBudget.vp run check:changed origin/custom --timeout 3000: format, lint, knip, typecheck (40 packages) and 17 of the 18 test files passed. The one failure was the context budget, which I then updated; that test now passes on its own.mcp-tool-useevals for the new or changed tool text (they use paid models).🤖 Generated with Claude Code