Repository navigation
feat(agent): add server-side cross-session agent tools (#275) - #294
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 2 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
|
|
@kilocode-bot please review this pull request |
|
To use Kilo from GitHub you first need to link your GitHub account to Kilo. Link your Kilo account to continue. After linking, mention me again in this issue or pull request. |
Fixes #275
An agent inside omp-web can now reach other top-level sessions, which
omp's own
tasktool andwrite agent://<id>cannot do (they only workinside one omp process). Three host tools, answered by the omp-web server
itself so they work with no browser tab open:
list_sessions— ID, name, cwd, running/idle for every session.new_session— cwd (defaults to the caller's), prompt, model("provider/modelId"), name; returns the new session ID, which appears
in the sidebar like any other session.
send_to_session— sessionId, message, delivery (prompt/steer/followUp),wait. A non-running target is resumed first, as when a user opens it.
With wait:true, the caller gets the target turn's final assistant text
(default timeout 120s, capped at 300s).
Safety (all from the issue):
System & Updates. It takes effect on the next host-tool registration
(session start or SSE reconnect).
sending session's full ID, so the origin is always visible.
chain-depth cap of 5 (a delivery's target depth = source depth + 1);
a failed delivery does not advance the chain.
running, followUp in either state; anything else returns a clear error
instead of corrupting a run. A waiter timeout never aborts the target.
Not in this PR (stated explicitly):
rate limit, and chain-depth limit are the safety mechanisms here.
and lint clean); a live smoke test with a real omp child is still
worth doing before merging.
Full suite: 1466 tests, 1455 pass, 6 fail, 5 skipped. The 6 failures
are the known pre-existing bin/omp-web-systemd.test.mjs PATH test plus
mcp-config/session-reader tests that reproduce on clean main and/or
pass in isolation (mcp-config alone gave 7/8 then 6/8 on successive
runs) — none of that code is touched by this patch, and the gate is
off by default in those tests.