Skip to content

fix: pass deps=None in SessionPool.send_message() - #166

Merged
Leoyzen merged 2 commits into
refactor/agentwolf_v1from
fix/send-message-deps
Jul 16, 2026
Merged

fix: pass deps=None in SessionPool.send_message()#166
Leoyzen merged 2 commits into
refactor/agentwolf_v1from
fix/send-message-deps

Conversation

@Leoyzen

@Leoyzen Leoyzen commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Fix: deps=None missing in SessionPool.send_message()

send_message() calls _route_message() directly, bypassing receive_request(). It wasn't passing the deps parameter that _route_message() expects (added in 5e3330c99). This causes 2 integration test failures:

FAILED test_opencode_delivery_mode_mapping
FAILED test_send_message_steer_mode_on_active_session

One-line fix: add deps=None to the _route_message() call.

Should be merged first — PR #164 and #165 both depend on this fix.

send_message() delegates directly to _route_message() bypassing
receive_request(), but wasn't passing the deps parameter. This
caused integration test assertion failures (test_opencode_delivery_mode_mapping,
test_send_message_steer_mode_on_active_session) since dd43821
added deps=None to the expected call args.

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request modifies the send_message function in session_pool.py to hardcode deps=None when routing messages. The reviewer pointed out that this change silently ignores the deps parameter passed to the function and suggested forwarding the parameter instead to ensure custom dependencies can be successfully propagated.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread src/agentpool/orchestrator/session_pool.py Outdated
Address review feedback: send_message() accepts a deps parameter,
so _route_message() should receive deps=deps, not deps=None.
@Leoyzen
Leoyzen merged commit ca7ad1a into refactor/agentwolf_v1 Jul 16, 2026
Leoyzen added a commit that referenced this pull request Jul 16, 2026
The revert of e0451ba (#165) also removed the deps and input_provider
parameters from send_message(), which were added in that same commit.
This re-adds deps to send_message() signature and forwards it to
_route_message(), restoring the fix from #166 that was lost.
Leoyzen added a commit that referenced this pull request Jul 16, 2026
The revert of e0451ba (#165) also removed the deps and input_provider
parameters from send_message(), which were added in that same commit.
This re-adds deps to send_message() signature and forwards it to
_route_message(), restoring the fix from #166 that was lost.
Leoyzen added a commit that referenced this pull request Jul 16, 2026
* fix: wire ACPSkillBridge to expose skills as ACP slash commands

ACPSkillBridge was defined but never instantiated or wired into the ACP
session lifecycle. ACP clients never received skills as
available_commands_update events.

Changes:
- Modified ACPSkillBridge to produce executable SlashedCommand objects
  (reusing create_skill_command() from opencode_server skill_bridge)
  instead of display-only AvailableCommand
- Added _register_skill_commands() to ACPSession that builds
  SkillCommand objects from the skills registry, feeds them through
  the bridge, and registers SlashedCommand in command_store
- Called _register_skill_commands() in __post_init__ for pool-level
  skills
- Wired init_client_skills() to re-register and send
  available_commands_update after client skill discovery
- Added _watch_skill_changes() background task that subscribes to
  ExtensionRegistry.merge_change_streams() for dynamic updates
- Cancel watcher task on session close()
- 37 tests covering unit, integration, E2E, and regression scenarios

OpenSpec: fix-acp-skill-commands

* fix: address review feedback — stale skill removal + lint/format fixes

- Add get_command_names() to ACPSkillBridge for clean stale detection
- Fix _register_skill_commands() to remove stale skills via
  handle_change(name, None) + command_store.unregister_command(name)
- Fix D205/D400/D415 docstring lint errors in test files
- Add D104 docstring to tests/acp_server/__init__.py
- Run ruff format on all changed files
- All 37 tests still pass

* fix: re-add deps parameter to send_message() after span revert

The revert of e0451ba (#165) also removed the deps and input_provider
parameters from send_message(), which were added in that same commit.
This re-adds deps to send_message() signature and forwards it to
_route_message(), restoring the fix from #166 that was lost.
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