mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-09 00:49:41 +02:00
fix: stop subagent monitor windows from auto-opening on discovery
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -96,16 +96,8 @@ Object.assign(CodemanApp.prototype, {
|
|||||||
// Find which Codeman session owns this subagent (direct claudeSessionId match only)
|
// Find which Codeman session owns this subagent (direct claudeSessionId match only)
|
||||||
this.findParentSessionForSubagent(data.agentId);
|
this.findParentSessionForSubagent(data.agentId);
|
||||||
|
|
||||||
// Auto-open window for new active agents — but ONLY if they belong to a Codeman session tab.
|
// Subagent windows are no longer auto-opened on discovery.
|
||||||
// Agents from external Claude sessions (not managed by Codeman) should not pop up.
|
// Users can open them manually from the monitor panel or via openAllActiveSubagentWindows().
|
||||||
if (data.status === 'active') {
|
|
||||||
const agentForCheck = this.subagents.get(data.agentId);
|
|
||||||
const hasMatchingTab = agentForCheck?.sessionId &&
|
|
||||||
Array.from(this.sessions.values()).some(s => s.claudeSessionId === agentForCheck.sessionId);
|
|
||||||
if (hasMatchingTab) {
|
|
||||||
this.openSubagentWindow(data.agentId);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ensure connection lines are updated after window is created and DOM settles
|
// Ensure connection lines are updated after window is created and DOM settles
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user