You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dac7d9d
Browse filesBrowse the repository at this point in the historyBrowse files
fix(server): return the stored id when creating a push notification config (a2aproject#1236)
## Problem
The create handler returned the caller's request instead of what the
store saved, so on the database store the response had no `id`. Neither
store set `task_id`, so configs registered inline via `SendMessage` came
back with `task_id=""`.
## Fix
`set_info` now stores a copy with `task_id` set and an empty `id`
defaulted to the task id, and returns it without mutating the input.
Both handlers return that. `set_info` now returns
`TaskPushNotificationConfig` instead of `None`.
## Tests
Create-handler tests over both real stores (database skipped without the
sqlite extras), an inline `SendMessage` test, and a `set_info` test per
store. All fail with the source change reverted.
Fixesa2aproject#1237
0 commit comments