Skip to content

perf: remove blocking I/O from ExecuteAgentAction mutation (Refs: beans-bbg1)#152

Merged
hmans merged 1 commit into
mainfrom
beans/exciting-lobster-yi6z
Mar 18, 2026
Merged

perf: remove blocking I/O from ExecuteAgentAction mutation (Refs: beans-bbg1)#152
hmans merged 1 commit into
mainfrom
beans/exciting-lobster-yi6z

Conversation

@hmans
Copy link
Copy Markdown
Owner

@hmans hmans commented Mar 18, 2026

Summary

  • Removed all blocking I/O (git status checks, forge API calls, worktree listing) from the ExecuteAgentAction mutation resolver, which was causing a noticeable delay between clicking action buttons and the message appearing in chat
  • Simplified action prompts to let agents gather their own context instead of pre-fetching it — the agent will run git status, gh pr view, etc. as part of doing the actual work
  • The AgentActions query (which powers button visibility/disabled state) is unaffected and still does its own context gathering

Test plan

  • Unit tests pass (TestExecuteAgentAction, TestAgentActionRegistry)
  • Manual: click Review, Learn, Commit, Create PR buttons — messages should appear in chat noticeably faster
  • Manual: verify commit action still produces appropriate commit messages
  • Manual: verify create-pr action still correctly handles all states (no PR, existing PR, failing checks, mergeable)

…ns-bbg1)

- Remove git status, unpushed commits, and forge API calls from the
  mutation resolver — these were blocking the response unnecessarily
- Simplify action prompts to let agents inspect state themselves:
  - commit: single prompt, agent checks git status/diff
  - create-pr: unified prompt, agent checks PR state via CLI
- The AgentActions query (button visibility) still does its own
  context gathering, unaffected by this change
@hmans hmans merged commit 805c9e1 into main Mar 18, 2026
1 check passed
@hmans hmans deleted the beans/exciting-lobster-yi6z branch March 18, 2026 10:07
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.

1 participant