MCPcopy Index your code
hub / github.com/coder/mux / assertChatTransientState

Method assertChatTransientState

src/browser/stores/WorkspaceStore.ts:1810–1814  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

1808 }
1809
1810 private assertChatTransientState(workspaceId: string): WorkspaceChatTransientState {
1811 const state = this.chatTransientState.get(workspaceId);
1812 assert(state, `Workspace ${workspaceId} not found - must call addWorkspace() first`);
1813 return state;
1814 }
1815
1816 private deriveHistoryPaginationState(
1817 aggregator: StreamingMessageAggregator,

Callers 5

WorkspaceStoreClass · 0.95
getWorkspaceStateMethod · 0.95
handleChatMessageMethod · 0.95
processStreamEventMethod · 0.95

Calls 2

getMethod · 0.65
assertFunction · 0.50

Tested by

no test coverage detected