Several sessions of one app: a session's working folder names its agent when that agent runs in the same app (MCP server and hooks), an i_am tool binds a session explicitly, the doctor checks second sessions against their app's install, and an agent that left the roster can still be uninstalled

This commit is contained in:
KeelrLeek committed 2026-10-06 10:06:01 -05:00
1 parent d755ab8a76
commit e283e4cc54
6 files changed
+63 -5

No files matched your search

+1 -1
View File
@@ -213,7 +213,7 @@ def run(event, project_spec, agent, host="generic"):
if project_spec or os.environ.get("HARBOR_PROJECT"):
raise
return 0 # not a Harbor project: stay out of the way
agent = agent or os.environ.get("HARBOR_AGENT") or project.identity_for(cwd)
agent = project.session_identity(agent or os.environ.get("HARBOR_AGENT"), cwd) # the session's own folder
if not agent or agent not in project.ai_names:
return 0
harbor = Harbor(project, busy_ms=1500, write_attempts=2)