Repository navigation
feat(jobs): multi-agent awareness — job owners, presence, concurrency e2e #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,12 @@ | ||
| # Unreleased | ||
|
|
||
| ### Added | ||
|
|
||
| - **Agents sharing a host can see each other.** `job(action="list")` opens with the agents (OAuth clients) that used the host in the last 15 minutes, the caller marked `you` — e.g. `2 agents active (last 15 min): you (Claude Code#4f2a), cursor#9b1c` — and each job gains `by`: `you`, the agent that started it, or `unknown` for older jobs. Polling or killing another agent's job still works (one service user), and the reply opens with `[started by another agent: …]`. | ||
| - `mcp-ssh jobs` shows a `BY` column; `mcp-ssh sessions` lists each logged-in agent with when it was last active. | ||
| - An end-to-end test proves two separately logged-in agents run commands and background jobs side by side without waiting on each other. | ||
|
|
||
| ### Changed | ||
|
|
||
| - **Schema version 7.** `jobs` gains `client_id`/`client_name`; `clients` gains `client_name`/`last_used_unix`. An older binary, including its admin CLI, refuses a migrated database. A `client_name` from client registration is cleaned before it is stored or shown: control and invisible characters dropped, whitespace collapsed, at most 32 characters. | ||
| - `job(action="list")` is no longer bare JSON: the presence line comes first. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor · docs docs/architecture.md:64 still says
job(action="list")"exposes only the id and state", butListedJob(src/tools/job_render.rs:46) now addsby, and every list reply opens with a presence line. Update line 64 (and thejobrow in README.md:74) to mentionbyand the presence line, while keeping the claim that command text is never exposed.