MCPcopy Create free account
hub / github.com/alibaba/open-code-review / session_update

Method session_update

acp/testdata/python-client-smoke.py:120–126  ·  view source on GitHub ↗
(self, session_id, update, **kwargs)

Source from the content-addressed store, hash-verified

118 pass
119
120 async def session_update(self, session_id, update, **kwargs):
121 obj = update.model_dump(mode="json", by_alias=True, exclude_none=True)
122 self.updates.append(obj)
123 if obj["sessionUpdate"] == "available_commands_update":
124 self.commands_ready.set()
125 if obj["sessionUpdate"] == "tool_call_update" and "READY" in obj.get("title", ""):
126 self.ready.set()
127
128
129def assert_execution(updates, status, expected_lines):

Callers

nothing calls this directly

Calls 3

appendMethod · 0.45
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected