MCPcopy
hub / github.com/aiming-lab/MetaClaw / update_cli_session_id

Method update_cli_session_id

metaclaw/cli_session_store.py:149–158  ·  view source on GitHub ↗

Update the CLI session ID (e.g. from CLI output).

(
        self,
        metaclaw_session_id: str,
        cli_session_id: str,
    )

Source from the content-addressed store, hash-verified

147 return None
148
149 def update_cli_session_id(
150 self,
151 metaclaw_session_id: str,
152 cli_session_id: str,
153 ) -> None:
154 """Update the CLI session ID (e.g. from CLI output)."""
155 existing = self._bindings.get(metaclaw_session_id)
156 if existing:
157 existing.cli_session_id = cli_session_id
158 self.save()
159
160 def clear_session(self, metaclaw_session_id: str) -> None:
161 """Remove the CLI session binding for a MetaClaw session."""

Callers 1

_forward_to_cliMethod · 0.95

Calls 2

saveMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected