feat(onebot): complete trace operation chains

Make short TRACE captures independently explain OneBot action and event lifecycles from complete input through a truthful terminal conclusion. Preserve request correlation across asynchronous work while keeping disabled TRACE paths allocation-free and lazy.

Cover shutdown rejection, stream cancellation, event conversion and suppression, reporter invocation settlement, and HTTP delivery outcomes without changing established transport or observer behavior. Add focused regression coverage for lifecycle uniqueness, context reuse, disconnect handling, and quiesce ingress boundaries.
This commit is contained in:
DrSmoothl committed 2026-07-30 17:13:40 +08:00
1 parent b9104f0a5b
commit f9c4063fc5
20 files changed
+1304 -154

No files matched your search

+7
View File
@@ -39,6 +39,13 @@ export interface StreamSink {
send(frame: JsonValue): Promise<void>;
}
export class StreamTransportClosedError extends Error {
constructor(message = 'stream transport closed') {
super(message);
this.name = 'StreamTransportClosedError';
}
}
/** Fallback sink for when a stream action is invoked over a transport that
* can't stream (or by a plain client): intermediate frames are dropped, the
* terminal response is still returned normally. */