MCPcopy Create free account
hub / github.com/anomalyco/opencode / activeShellIndex

Function activeShellIndex

packages/core/src/session/message-updater.ts:24–25  ·  view source on GitHub ↗
(callID: string)

Source from the content-addressed store, hash-verified

22 // A newer turn supersedes stale incomplete rows; never resume an older assistant projection.
23 const latestAssistantIndex = () => state.messages.findLastIndex((message) => message.type === "assistant")
24 const activeShellIndex = (callID: string) =>
25 state.messages.findLastIndex((message) => message.type === "shell" && message.callID === callID)
26
27 return {
28 getCurrentAssistant() {

Callers 2

getCurrentShellFunction · 0.85
updateShellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected