Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR fixes
Confidence Score: 4/5Safe to merge with the understanding that the hidden-tool duplication and dynamic skill tool visibility are follow-up items. The core bug fix is correct and tested. The new Mothership settings infrastructure is well-structured with proper auth gating. The main concern is that message-content.tsx defines its own copy of HIDDEN_TOOL_NAMES instead of reusing the shared function, and the new load_skill_* tools use dynamic names that the static set will never catch, potentially reintroducing the same UI-visibility issue for skill tools. apps/sim/app/workspace/[workspaceId]/home/components/message-content/message-content.tsx (duplicated hidden set) and apps/sim/lib/mothership/settings/runtime.ts (dynamic tool names not hidden) Important Files Changed
Sequence DiagramsequenceDiagram
participant Admin as Super Admin UI
participant SettingsAPI as /api/mothership/settings
participant Runtime as buildMothershipToolsForRequest
participant AgentURL as getMothershipBaseURL
participant Mothership as Mothership Agent
Admin->>SettingsAPI: "PUT {workspaceId, mcpTools, customTools, skills}"
SettingsAPI->>SettingsAPI: isEffectiveSuperUser check
SettingsAPI->>SettingsAPI: filterMcpToolRefs / filterCustomToolRefs / filterSkillRefs
SettingsAPI-->>Admin: saved MothershipSettings
Admin->>AgentURL: select environment (dev/staging/prod)
AgentURL->>AgentURL: isEffectiveSuperUser check
AgentURL-->>Admin: environment URL stored in user settings
Admin->>Mothership: chat request (via copilot/chat/post)
Mothership->>Runtime: "buildMothershipToolsForRequest({workspaceId, userId})"
Runtime->>Runtime: isEffectiveSuperUser check
Runtime->>Runtime: load mcpTools / customTools / skills from DB
Runtime-->>Mothership: "{tools: [...], catalogContext}"
Mothership->>AgentURL: "getMothershipBaseURL({userId})"
AgentURL-->>Mothership: routed environment URL
Mothership-->>Admin: "stream with hidden load_custom_tool (fixed) + load_skill_* (still visible)"
|
Summary
Fix tool hidden in ui
Type of Change
Testing
Manual
Checklist