Remove Tools button and Research mode; collapse runtime profile#182
Merged
Conversation
Removes the user-facing Research mode feature and the Tools popover entirely, then cleans up everything the removal orphaned. UI: - Drop the Tools (+) popover and Research pill from PromptForm; the footer now renders only the ModelSelector. - Delete ResearchModeToggle and its use in the message-edit UI. Run mode: - Remove the runMode/AgentRunMode concept end to end (UI props, use-agent-session, follow-up plumbing, message metadata). - Delete use-persistent-run-mode + persistent-run-mode-utils and the RUN_MODE_* localStorage constants. Server: - Remove runMode validation, the AGENT_RESEARCH_MODEL_UNAVAILABLE error, research model forcing, RESEARCH_MODEL, and the DEEP RESEARCH MODE system-prompt block. - Collapse the single remaining runtime profile: drop AGENT_RUNTIME_PROFILES/AgentRuntimeProfileId and use AGENT_TOOL_MAX_STEPS directly; make taskMode a required param and always route provider options through the task-mode mapping. - Delete the legacy getAiSdkGatewayProviderOptionsForMode shim. The internal, content-inferred "research" task mode is intentionally kept. Stored threads carrying legacy runMode metadata parse fine; the field is dropped on read (no migration). Tests and docs (README, CLAUDE.md) updated accordingly.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Removes the user-facing Research mode feature and the Tools (+) popover entirely, then cleans up everything the removal orphaned. Since Research was the only non-
chatrun mode and the only thing in the Tools popover, the wholerunMode/AgentRunModeconcept becomes vestigial and is removed end to end.Net: 46 files changed, +107 / −1129 (4 files deleted).
What changed
UI
(+)popover and the Research pill fromPromptForm— the footer now renders only theModelSelector.ResearchModeToggleand its use in the message-edit UI.Run mode
runMode/AgentRunModeend to end (prompt-form props,use-agent-session, follow-up plumbing, message metadata).use-persistent-run-mode+persistent-run-mode-utilsand theRUN_MODE_*localStorage constants.Server
runModevalidation, theAGENT_RESEARCH_MODEL_UNAVAILABLEerror, research model forcing,RESEARCH_MODEL, and theDEEP RESEARCH MODEsystem-prompt block.AGENT_RUNTIME_PROFILES/AgentRuntimeProfileIdand useAGENT_TOOL_MAX_STEPSdirectly; maketaskModea required param and always route provider options through the task-mode mapping.getAiSdkGatewayProviderOptionsForModeshim.Intentionally kept: the internal, content-inferred
"research"task mode overlay — a separate automatic prompt-steering axis, not the user-facing toggle.Backward-compat: stored threads carrying legacy
runModemetadata still parse; the field is dropped on read (no migration). Covered by a test.Docs (
README.md,CLAUDE.md) updated to match.Verification
All green locally:
pnpm typecheck·pnpm lint(--max-warnings=0) ·pnpm test(183 tests) ·pnpm format:check·pnpm build·pnpm bundle:budget(12.99/14 MiB) ·pnpm test:smoke:mock(7/7, including the edit-and-regenerate flow that exercises the simplified edit UI).https://claude.ai/code/session_01BdUP9R5UfxFCqfYhuHj1pB
Generated by Claude Code