MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getLastSequenceNum

Method getLastSequenceNum

src/cli/transports/SSETransport.ts:227–229  ·  view source on GitHub ↗

* High-water mark of sequence numbers seen on this stream. Callers that * recreate the transport (e.g. replBridge onWorkReceived) read this before * close() and pass it as `initialSequenceNum` to the next instance so the * server resumes from the right point instead of replaying everything.

()

Source from the content-addressed store, hash-verified

225 * server resumes from the right point instead of replaying everything.
226 */
227 getLastSequenceNum(): number {
228 return this.lastSequenceNum
229 }
230
231 async connect(): Promise<void> {
232 if (this.state !== 'idle' && this.state !== 'reconnecting') {

Callers 6

rebuildTransportFunction · 0.80
getLastSequenceNumFunction · 0.80
doReconnectFunction · 0.80
initBridgeCoreFunction · 0.80
getSSESequenceNumFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected