Commit Graph

528 Commits (7672e48c19c443780a5367cf4c87fd0b79cbcd03)

Author SHA1 Message Date
Peter Steinberger 28673a9388
fix: restore bundled plugin runtime deps after global install 8 months ago
Peter Steinberger 8bf8baef87
Revert "refactor: move tasks into bundled plugin"
This reverts commit c75f4695b7.
8 months ago
Peter Steinberger c425ef3e74
build: bump version to 2026.3.31 8 months ago
Vincent Koc 5aac609e08 test(ci): rebalance telegram thread binding timing 8 months ago
Vincent Koc b3a2734cc9 test(ci): rebalance telegram acp binding timing 8 months ago
Vincent Koc 983891a603 fix(ci): narrow telegram route test seams 8 months ago
Vincent Koc 7c4bffdecd fix(ci): rebalance telegram dm thread tests 8 months ago
Vincent Koc 98c0c38186 fix(ci): rebalance telegram channel tails 8 months ago
Peter Steinberger c75f4695b7
refactor: move tasks into bundled plugin 8 months ago
Vincent Koc 2523e25c93 test(ci): rebalance telegram implicit mention timing 8 months ago
Peter Steinberger 0ed7f1fd22
refactor: remove core WhatsApp runtime channel seam 8 months ago
Peter Steinberger 8807b017d1
test: harden channel planner lane matching 8 months ago
Peter Steinberger c1ea0ae9c8
build: update deps and align pi sdk usage 8 months ago
Vincent Koc aaf6077f27 test(telegram): skip session persistence in message-context harness 8 months ago
Peter Steinberger 5fc8f6ca8f
test: align targeted channel batching expectation 8 months ago
Vincent Koc 29b9310319 fix(scripts): normalize bundled entry paths and planner counts 8 months ago
Vincent Koc 3be08454f4 test(telegram): narrow resolve-media retry imports 8 months ago
Peter Steinberger 5a93344d82
fix: ship bundled runtime support packages 8 months ago
Vincent Koc 5b7443d175 perf(whatsapp): narrow reply chunking imports 8 months ago
Vincent Koc 3f2fb73cfe perf(slack): avoid module resets in outbound adapter test 8 months ago
Vincent Koc d369c9373b perf(whatsapp): avoid module resets in poll adapter test 8 months ago
Vincent Koc 35072c4751 perf(discord): avoid broad send barrel in webhook activity test 8 months ago
Vincent Koc e6441760d2 test(telegram): normalize message-context timing inputs 8 months ago
Vincent Koc 415e7d941b test(slack): remove slash metadata polling 8 months ago
Vincent Koc f2d4089ca2 test(discord): remove monitor polling overhead 8 months ago
Vincent Koc 334085fbe9 test(channels): inject telegram reply pipeline for dispatch tests 8 months ago
Vincent Koc 225dfe0094 fix(ci): stabilize planner executor fallback tests 8 months ago
Vincent Koc cf3ae2612b fix(ci): reduce slow channel test skew 8 months ago
Jacob Tomlinson 781775ec08
Media: secure image temp dirs (#58270) 8 months ago
Vincent Koc 2feb83babb fix(ci): shard fast extension checks 8 months ago
Vincent Koc a6046c94f7 fix(ci): speed up fast extension scheduling 8 months ago
Ayaan Zaidi 3059eadca2
test: fix provider runtime mocks and test planner load shedding 8 months ago
Neerav Makwana 763d5cea44
fix: hydrate WhatsApp participating groups on connect (#58007) (thanks @neeravmakwana)
* Web: hydrate participating groups on connect

* Web: avoid blocking inbox listeners during group hydration
8 months ago
Gustavo Madeira Santana 28ede9a23e
Matrix: isolate verification events hotspot 8 months ago
Gustavo Madeira Santana 47136536c8
tests: use multi-sample CLI startup baselines 8 months ago
Gustavo Madeira Santana 68e49fa791
tests: standardize CLI startup benchmarks 8 months ago
Peter Steinberger 2cb15255a7
test: fix ci regressions 8 months ago
Peter Steinberger 6b6ddcd2a6
test: speed up core runtime suites 8 months ago
Shakker afe4a4b260 test: clean test planner typing edges 8 months ago
Shakker d46f64199a fix: retry bundled runtime dependency staging 8 months ago
Shakker 72cb2a88f1 test: fix planner typing assertions 8 months ago
Shakker 2ff7bb604c test: update planner expectations for current catalog 8 months ago
Gustavo Madeira Santana e11b5d584c
Tests: isolate Matrix extension hotspots 8 months ago
Altay 9c25544e6c
test(ci): fix stale regression expectations (#57899) 8 months ago
Shakker aff6883f93 fix: avoid over-sharding single include-file test batches 8 months ago
Sean c6f2db1506
fix: prevent gateway attachment offload regressions (#55513) (thanks @Syysean)
* feat(gateway): implement claim check pattern to prevent OOM on large attachments

* fix: sanitize mediaId, refine trimEnd, remove warn log, add threshold and absolute path

* fix: enforce maxBytes before decoding and use dynamic path from saveMediaBuffer

* fix: enforce absolute maxBytes limit before Buffer allocation and preserve file extensions

* fix: align saveMediaBuffer arguments and satisfy oxfmt linter

* chore: strictly enforce linting rules (curly braces, unused vars, and error typing)

* fix: restrict offload to mainstream mimes to avoid extension-loss bug in store.ts for BMP/TIFF

* fix: restrict offload to mainstream mimes to bypass store.ts extension-loss bug

* chore: document bmp/tiff exclusion from offload whitelist in MIME_TO_EXT

* feat: implement agent-side resolver for opaque media URIs and finalize contract

* fix: support unicode media URIs and allow consecutive dots in safe IDs based on Codex review

* fix(gateway): enforce strict fail-fast for oversized media to prevent OOM bypass

* refactor(gateway): harden media offload with performance and security optimizations

This update refines the Claim Check pattern with industrial-grade guards:

- Performance: Implemented sampled Base64 validation for large payloads (>4KB) to prevent event loop blocking.
- Security: Added null-byte (\u0000) detection and reinforced path traversal guards.
- I18n: Updated media-uri regex to a blacklist-based character class for Unicode/Chinese filename support, with oxlint bypass for intentional control regex.
- Robustness: Enhanced error diagnostics with JSON-serialized IDs.

* fix: add HEIC/HEIF to offload allowlist and pass maxBytes to saveMediaBuffer

* fix(gateway): clean up offloaded media files on attachment parse failure

Address Codex review feedback: track saved media IDs and implement best-effort cleanup via deleteMediaBuffer if subsequent attachments fail validation, preventing orphaned files on disk.

* fix(gateway): enforce full base64 validation to prevent whitespace padding bypass

Address Codex review feedback: remove early return in isValidBase64 so padded payloads cannot bypass offload thresholds and reintroduce memory pressure. Updated related comments.

* fix(gateway): preserve offloaded media metadata and fix validation error mapping

Address Codex review feedback:
- Add \offloadedRefs\ to \ParsedMessageWithImages\ to expose structured metadata for offloaded attachments, preventing transcript media loss.
- Move \erifyDecodedSize\ outside the storage try-catch block to correctly surface client base64 validation failures as 4xx errors instead of 5xx \MediaOffloadError\.
- Add JSDoc TODOs indicating that upstream callers (chat.ts, agent.ts, server-node-events.ts) must explicitly pass the \supportsImages\ flag.

* fix(agents): explicitly allow media store dir when loading offloaded images

Address Codex review feedback: Pass getMediaDir() to loadWebMedia's localRoots for media-uri refs to prevent legacy path resolution mismatches from silently dropping large attachments.

* fix(gateway): resolve attachment offload regressions and error mapping

Address Codex review feedback:
- Pass \supportsImages\ dynamically in \chat.ts\ and \gent.ts\ based on model catalog, and explicitly in \server-node-events.ts\.
- Persist \offloadedRefs\ into the transcript pipeline in \chat.ts\ to preserve media metadata for >2MB attachments.
- Correctly map \MediaOffloadError\ to 5xx (UNAVAILABLE) to differentiate server storage faults from 4xx client validation errors.

* fix(gateway): dynamically compute supportsImages for overrides and node events

Address follow-up Codex review feedback:

- Use effective model (including overrides) to compute \supportsImages\ in \gent.ts\.

- Move session load earlier in \server-node-events.ts\ to dynamically compute \supportsImages\ rather than hardcoding true.

* fix(gateway): resolve capability edge cases reported by codex

Address final Codex edge cases:
- Refactor \gent.ts\ to compute \supportsImages\ even when no session key is present, ensuring text-only override requests without sessions safely drop attachments.
- Update catalog lookups in \chat.ts\, \gent.ts\, and \server-node-events.ts\ to strictly match both \id\ and \provider\ to prevent cross-provider model collisions.

* fix(agents): restore before_install hook for skill installs

Restore the plugin scanner security hook that was accidentally dropped during merge conflict resolution.

* fix: resolve attachment pathing, defer parsing after auth gates, and clean up node-event mocks

* fix: resolve syntax errors in test-env, fix missing helper imports, and optimize parsing sequence in node events

* fix(gateway): re-enforce message length limit after attachment parsing

Adds a secondary check to ensure the 20,000-char cap remains effective even after media markers are appended during the offload flow.

* fix(gateway): prevent dropping valid small images and clean up orphaned media on size rejection

* fix(gateway): share attachment image capability checks

* fix(gateway): preserve mixed attachment order

* fix: fail closed on unknown image capability (#55513) (thanks @Syysean)

* fix: classify offloaded attachment refs explicitly (#55513) (thanks @Syysean)

---------

Co-authored-by: Ayaan Zaidi <hi@obviy.us>
8 months ago
Gustavo Madeira Santana 74ea42e210 Tests: relax targeted unit planner split assertion 8 months ago
Gustavo Madeira Santana f380305ee4
Tests: restore extension plugin test seams 8 months ago
qsam 47839d3b9a
fix(mattermost): detect stale websocket after bot disable/enable cycle (#53604)
Merged via squash.

Prepared head SHA: 818d437a5438eb9e90aa67e74a05b7e2090ae049
Co-authored-by: Qinsam <19649380+Qinsam@users.noreply.github.com>
Co-authored-by: mukhtharcm <56378562+mukhtharcm@users.noreply.github.com>
Reviewed-by: @mukhtharcm
8 months ago
Peter Steinberger 25074de838
fix: restore lightweight root help startup 8 months ago