MCPcopy Create free account
hub / github.com/antirez/ds4 / agent_tool_more

Function agent_tool_more

ds4_agent.c:5739–5745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5737 if (!ok) {
5738 if (!err[0]) snprintf(err, err_len, "failed to read session");
5739 free(title);
5740 free(text);
5741 free(path);
5742 return false;
5743 }
5744
5745 char actual_sha[41];
5746 agent_kv_identity_sha(&hdr, text, text_bytes, title, actual_sha);
5747 if (strcmp(actual_sha, sha)) {
5748 snprintf(err, err_len, "cached session identity does not match file name");

Callers 1

agent_execute_tool_callFunction · 0.85

Calls 4

agent_parse_int_defaultFunction · 0.85
agent_tool_arg_valueFunction · 0.85
agent_read_rangeFunction · 0.85
xstrdupFunction · 0.70

Tested by

no test coverage detected