fix(a2a): close session_id validation bypass in _handle_session_close
Removed unreachable duplicate code left over after moving session_id validation to the top of _handle_session_close(). Updated BDD test scenario in a2a_facade_wiring.feature to cover the no-service + empty session_id path. PR-CLOSED: #9250
This commit is contained in:
@@ -34,6 +34,15 @@ Feature: A2A local facade wiring to live services
|
||||
When I dispatch wired operation "session.close" with params {}
|
||||
Then the wired response status should be "error"
|
||||
|
||||
# ---------------------------------------------------------------
|
||||
# Validate session_id at entry — no service scenario (PR #9250)
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
Scenario: session.close without session_id and no service returns error
|
||||
Given a wired A2aLocalFacade with no services
|
||||
When I dispatch wired operation "session.close" with params {"session_id": ""}
|
||||
Then the wired response status should be "error"
|
||||
|
||||
# ---------------------------------------------------------------
|
||||
# Plan lifecycle wiring
|
||||
# ---------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user