MCPcopy Create free account
hub / github.com/Noumena-Network/code / withSignals

Function withSignals

src/screens/replMessageSignals.ts:167–182  ·  view source on GitHub ↗
(
  previous: ReplMessageSignalState,
  isLoading: boolean,
)

Source from the content-addressed store, hash-verified

165}
166
167function withSignals(
168 previous: ReplMessageSignalState,
169 isLoading: boolean,
170): ReplMessageSignalState {
171 return {
172 ...previous,
173 signals: {
174 ...previous.promptSignals,
175 lastAssistantToolUses: previous.lastAssistantToolUses,
176 stopHookSpinnerSuffix: formatStopHookSpinnerSuffix(
177 previous.stopHookState,
178 isLoading,
179 ),
180 },
181 }
182}
183
184function canAppendIncrementally(
185 previous: ReplMessageSignalState,

Callers 1

Calls 1

Tested by

no test coverage detected