MCPcopy Create free account
hub / github.com/ByBrawe/opencode-loop / fileContains

Function fileContains

src/index.js:731–737  ·  view source on GitHub ↗
(filePath, needle)

Source from the content-addressed store, hash-verified

729 return { providerID, modelID };
730}
731function updateSessionExecutionContext(info) {
732 const sessionID = info?.sessionID || info?.id;
733 if (typeof sessionID !== "string")
734 return;
735 const previous = sessionExecutionContexts.get(sessionID) || {};
736 const candidateAgent = info?.agent || (info?.role === "assistant" ? info?.mode : undefined);
737 const agent = typeof candidateAgent === "string" && candidateAgent !== LOCAL_COMMAND_AGENT ? candidateAgent : previous.agent;
738 const model = normalizedModelRef(info?.model) || normalizedModelRef(info) || previous.model;
739 sessionExecutionContexts.set(sessionID, { agent, model });
740}

Callers 2

untilReachedFunction · 0.85
walkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected