1.4 KiB
1.4 KiB
@runfusion/fusion
| @runfusion/fusion |
|---|
| patch |
Fix a batch of CLI Agent Executor review defects:
- Schema-version gate: bump
SCHEMA_VERSIONto 110 so a DB already at 109 runs migration 110 and gains thechat_sessions.cliExecutorAdapterIdcolumn (it was previously short-circuited). Add the column to the compat-fingerprintMIGRATION_ONLY_TABLE_SCHEMAS.chat_sessionsentry so the fingerprint matches. - Generic adapter double-wrap:
formatInjectionno longer re-wraps injected text in bracketed-paste markers whenbracketedPasteActive; the session manager's security path is the sole wrapper, so the generic adapter (like every native one) only appends a carriage return. - Output-filter cross-boundary bypass: thread one carry buffer across the scrollback→live seam in the CLI session WS bridge so a dangerous escape (e.g. OSC 52) split across the seam is fully neutralized instead of the held introducer being flushed verbatim into the scrollback frame.
- Output-filter overflow leak: when an over-length carry begins with a
recognized dangerous introducer (OSC
ESC ]/ DCSESC P), drop the introducer instead of flushing it as literal, so it cannot recombine with a later terminator at the client. - Follow-up never resolves:
followUp()now drives the authoritative state machinedone→busybefore injecting, so the re-armed result promise resolves on the next positivedoneinstead of hanging on an idempotent done.