Skip to content

Commit ffc26ae

Browse files
authored
Update agent_session.py
1 parent 3395334 commit ffc26ae

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

python_agent_harness/agent_session.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,16 +141,16 @@ def __init__(
141141
# TUI hooks (overridden by the UI)
142142
self.on_delta: Callable[[str], None] | None = None
143143
self.log_fn: Callable[[str], None] | None = None
144-
self.notify_fn: Callable[[str], None] | None = None
144+
self.notify_fn: Callable[[str, Any], None] | None = None
145145
self.confirm_fn: Callable[[str], bool] | None = None
146146
self.ask_fn: Callable[[list[dict]], str] | None = None
147147

148148
# ------------------------------------------------------------------
149149
# notifications
150150
# ------------------------------------------------------------------
151-
def notify(self, kind: str) -> None:
151+
def notify(self, kind: str, data: Any = None) -> None:
152152
if self.notify_fn:
153-
self.notify_fn(kind)
153+
self.notify_fn(kind, data)
154154

155155
def log(self, msg: str) -> None:
156156
if self.log_fn:

0 commit comments

Comments
 (0)