Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/CodebuffAI/codebuff
/ getInitialSessionState
Function
getInitialSessionState
common/src/types/session-state.ts:142–149 ·
view source on GitHub ↗
( fileContext: ProjectFileContext, )
Source
from the content-addressed store, hash-verified
140
}
141
}
142
export
function
getInitialSessionState(
143
fileContext: ProjectFileContext,
144
): SessionState {
145
return
{
146
mainAgentState: getInitialAgentState(),
147
fileContext,
148
}
149
}
Callers
15
spawn-agents-permissions.test.ts
File · 0.90
subagent-streaming.test.ts
File · 0.90
cost-aggregation.test.ts
File · 0.90
run-programmatic-step.test.ts
File · 0.90
main-prompt.test.ts
File · 0.90
read-docs-tool.test.ts
File · 0.90
runStream
Function · 0.90
n-parameter.test.ts
File · 0.90
run-agent-step-tools.test.ts
File · 0.90
spawn-agents-image-content.test.ts
File · 0.90
tool-validation-error.test.ts
File · 0.90
gravity-index-tool.test.ts
File · 0.90
Calls
1
getInitialAgentState
Function · 0.85
Tested by
1
runStream
Function · 0.72