fix: simplify connector matching - CEO auto-detects and uses available connectors silently
- Remove all user-facing messaging about connector selection - CEO reads available connectors and assigns automatically - No special-case logic for single vs multiple connectors - Matching is invisible to the user
This commit is contained in:
1 parent
6f13d324e4
commit
07a0d54f77
2 files changed
+3
-26
No files matched your search
@@ -140,13 +140,10 @@ export function matchConnector(input: ConnectorMatchInput): ConnectorMatchResult
|
||||
|
||||
// recommended should always be set if readySet.size > 0, but guard
|
||||
if (recommended) {
|
||||
const onlyOneReady = readySet.size === 1;
|
||||
return {
|
||||
recommendedConnectorId: recommended,
|
||||
fallbackConnectorId: fallback,
|
||||
reason: onlyOneReady
|
||||
? `Only available connector: ${recommended}. Assign to all agents.`
|
||||
: `Best match for ${taskType} tasks: ${CONNECTOR_STRENGTHS[recommended]}`,
|
||||
reason: `Selected ${recommended} for ${taskType} tasks.`,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -928,31 +928,11 @@ IMPORTANT: Wait for the Board to approve before starting business operations.
|
||||
return `- **${c.label}** (\`${c.id}\`): ${strengths} [STATUS: ${c.status}]`;
|
||||
});
|
||||
|
||||
const readyConnectors = ctx.allConnectors.filter((c) => c.status === "ready");
|
||||
const onlyOneConnector = readyConnectors.length === 1;
|
||||
|
||||
if (onlyOneConnector) {
|
||||
const sole = readyConnectors[0];
|
||||
sections.push(`# Available Connectors for Hiring
|
||||
You have ONE available connector:
|
||||
sections.push(`# Available Connectors
|
||||
${connectorLines.join("\n")}
|
||||
|
||||
Since only **${sole.label}** (\`${sole.id}\`) is ready, assign it to ALL agents you create. Do not worry about matching connectors to roles — use this connector for every agent.
|
||||
When creating agents, automatically assign the best ready connector for their role. Use connectors marked "ready" only.
|
||||
`);
|
||||
} else {
|
||||
sections.push(`# Available Connectors for Hiring
|
||||
When hiring agents, assign the best connector for their role:
|
||||
${connectorLines.join("\n")}
|
||||
|
||||
Connector Assignment Guide:
|
||||
- Engineering/code roles: prefer claude_local or codex_local
|
||||
- Research/analysis roles: prefer gemini_local (falls back to claude_local)
|
||||
- Content/writing roles: prefer claude_local
|
||||
- Management/coordination: prefer claude_local
|
||||
- If preferred connector is not listed as "ready", use the next best available
|
||||
- NEVER assign a connector with status "not_installed" or "error"
|
||||
`);
|
||||
}
|
||||
}
|
||||
} else if (hasPendingOrgApproval) {
|
||||
sections.push(`# Operating Instructions (CEO — Awaiting Org Approval)
|
||||
|
||||
Reference in new issue
Block a user