Skip to content

feat: serve the agent tree on the door's typed API - #379

Merged
Mearman merged 3 commits into
mainfrom
feat/session-api
Oct 11, 2026
Merged

Mearman merged 3 commits into
mainfrom
feat/session-api

Conversation

@Mearman

@Mearman Mearman commented Oct 11, 2026

Copy link
Copy Markdown
Member

Adds agentTrees.list and agentTrees.show to the door's typed API as read-only procedures over the reader, so the MCP server lists them as tools without any write opt-in and library consumers reach them through the door. The session lookup moves out of the command module into src/agents/sessions.ts, so the door and session list|show share one implementation.

Based on feat/session-commands; retarget once #377 merges. Closes #363.

@Mearman
Mearman force-pushed the feat/session-commands branch from 82c75ac to ac156eb Compare October 11, 2026 20:00
@Mearman
Mearman force-pushed the feat/session-commands branch from ac156eb to 4151623 Compare October 11, 2026 20:35
@Mearman
Mearman force-pushed the feat/session-commands branch from 4151623 to 1aaf905 Compare October 11, 2026 23:20
@Mearman
Mearman changed the base branch from feat/session-commands to main October 11, 2026 23:21
agentTrees.list and agentTrees.show expose the data the session commands
print as read-only procedures, so the MCP server lists them as tools with
no write opt-in and library consumers reach them through the door. The
session lookup moves out of the command module so the door and the CLI
share one implementation.
@Mearman
Mearman marked this pull request as ready for review October 11, 2026 23:29
@Mearman

Mearman commented Oct 11, 2026

Copy link
Copy Markdown
Member Author

@codex review

@Mearman

Mearman commented Oct 11, 2026

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-10-11T23:43:40.380304Z ec2adb7 Manual request

Security findings

Advisory findings (1)

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛡️ Codex Security Review

Here are some automated security review suggestions for this pull request.

Reviewed commit: 7d336987b3

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

Comment thread src/frontdoor/agentTreesApi.ts
… grant

The agent tree operations span every identity's sessions and return descriptions, task contents
and project names, so a read-only MCP launch no longer exposes them. A third grant, `history`,
is set with `--allow-history` or `mcp permissions allow history`; a stored permission file
written before it existed reads as not allowed.
@Mearman

Mearman commented Oct 11, 2026

Copy link
Copy Markdown
Member Author

@codex review

@Mearman

Mearman commented Oct 11, 2026

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: ec2adb7fc1

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@Mearman
Mearman merged commit 179de1d into main Oct 11, 2026
31 checks passed
@Mearman
Mearman deleted the feat/session-api branch October 11, 2026 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Serve the agent tree from the MCP server

1 participant