Commit Graph

166 Commits (acd8966ff054511b541ab1020377055b2694de09)

Author SHA1 Message Date
Peter Steinberger f7a32cd25e
test: reset imessage facade runtime before each test 8 months ago
Peter Steinberger 4dbc66b1ed
fix: remove bundled channel startup reentry 8 months ago
Peter Steinberger b1e3e59429
fix(ci): align stale provider and channel tests 8 months ago
Peter Steinberger b0e1551eb8
refactor(extensions): add channel-owned config schema seams 8 months ago
Peter Steinberger 1246e2b03a
refactor(extensions): move channel-specific config surfaces out of core 8 months ago
Peter Steinberger 5b144655f2
test(ci): align channel defaults and clean stale hook tests 8 months ago
Peter Steinberger 32ba917079
perf: split infra, tooling, and provider test lanes 8 months ago
Vincent Koc 6c31b2fbc5 refactor(imessage): narrow channel runtime imports 8 months ago
Vincent Koc bb4e54ccf7 fix(ci): restore plugin sdk boundary seams 8 months ago
Peter Steinberger ab318de8b7
test(plugins): finish moving contract coverage 8 months ago
Peter Steinberger e4b5027c5e
refactor(plugins): move extension seams into extensions 8 months ago
Tak Hoffman 8e023ffd06
fix: honor imessage default setup status 8 months ago
Peter Steinberger 1c66a050c2
refactor(plugins): move outbound dep aliases into extensions 8 months ago
Tak Hoffman d305a80acd
fix: honor imessage setup default account 8 months ago
Tak Hoffman 4f5f1fa724
fix: honor imessage default runtime account 8 months ago
Peter Steinberger 6eca4e0136
test: trim extension partial mocks 8 months ago
Peter Steinberger ab96520bba
refactor(plugins): move channel behavior into plugins 8 months ago
Tak Hoffman 4bbd67c21e
fix: honor imessage default account setup policy 8 months ago
Tak Hoffman b929a4c27d
fix: honor imessage setup account status 8 months ago
Peter Steinberger f36ed7105f
test: reduce extension runtime partial mocks 8 months ago
Tak Hoffman b2a9e0d7a7
fix: honor setup binary path account overrides 8 months ago
Tak Hoffman b63a175d3d
fix: honor imessage probe account config 8 months ago
Peter Steinberger d74d47443e
test: trim extension setup startup 8 months ago
Tak Hoffman 8805c7b55b
fix: honor imessage setup dm policy accounts 8 months ago
Vincent Koc 568859e1fb test(extensions): avoid barrel testing helpers in media tests 8 months ago
Peter Steinberger 2766c27b2a
refactor(plugin-sdk): genericize web channel runtime seams 8 months ago
Peter Steinberger 694d12a90b
refactor: apply context visibility across channels 8 months ago
Peter Steinberger 051e31fb55
test: centralize outbound payload contracts 8 months ago
Peter Steinberger 2db2b078ca
test: remove extension group policy wrappers 8 months ago
Peter Steinberger 1f97f907b2
test: centralize registry-backed channel contracts 8 months ago
Peter Steinberger b910cc5869
test: remove extension manifest and core-extension wrappers 8 months ago
Peter Steinberger 3bb02d3338
fix(media): align outbound sends with fs read capability 8 months ago
Peter Steinberger 63cbc097b5
refactor(channels): route core through registered plugin capabilities 8 months ago
Peter Steinberger 8861cdbb6f
refactor(plugin-sdk): untangle extension test seams 8 months ago
Peter Steinberger 2e0682d930
refactor: finish decoupling plugin sdk seams 8 months ago
Ayaan Zaidi 4a5885df3a
fix(imessage): try all inbound echo ids 8 months ago
Rohan Marr b29e180ef4
fix: prevent self-chat dedupe false positives (#55359) (thanks @rmarr)
* fix(imessage): prevent self-chat dedupe false positives (#47830)

Move echo cache remember() to post-send only, add early return when
inbound message ID doesn't match cached IDs (prevents text-based
false positives in self-chat), and reduce text TTL from 5s to 3s.

Three targeted changes to fix silent user message loss in self-chat:

1. deliver.ts: Remove pre-send remember() call — cache only reflects
   successfully-delivered content, not pre-send full text.

2. echo-cache.ts: Skip text fallback when inbound has a valid message ID
   that doesn't match any cached outbound ID. In self-chat, sender == target
   so scopes collide; a user message with a fresh ID but matching text was
   incorrectly dropped as an echo.

3. echo-cache.ts: Reduce text TTL from 5000ms to 3000ms — agent echoes
   arrive within 1-2s, 5s was too wide.

Adds self-chat-dedupe.test.ts (7 tests) + updates deliver.test.ts.
BlueBubbles uses a different cache pattern — no changes needed there.

Closes #47830

* review(imessage): strip debug logs, bump echo TTL to 4s (#47830)

Bruce Phase 4 review changes:
- Remove all [IMSG-DEBUG] console.error calls from inbound-processing.ts
  and monitor-provider.ts (23 lines, left over from Phase 2 debug deploy)
- Bump SENT_MESSAGE_TEXT_TTL_MS from 3s to 4s in echo-cache.ts to give
  ~2s margin above the observed 2.2s echo arrival time under load
- Update TTL tests to reflect 4s TTL (expired at 5s, live at 3s)

* fix(imessage): add dedupe comments and canary/compat/TTL tests

* fix(imessage): address review feedback on echo cache, shadowing, and test IDs

* refactor(imessage): hoist inboundMessageId to eliminate duplicate computation (#47830)

* fix(imessage): unify self-chat echo matching

* fix: use inbound guid for self-chat echo matching (#55359) (thanks @rmarr)

---------

Co-authored-by: Rohan Marr <rmarr@users.noreply.github.com>
Co-authored-by: Ayaan Zaidi <hi@obviy.us>
8 months ago
Peter Steinberger 70c2458861 refactor: add host and collection runtime sdk seams 8 months ago
Peter Steinberger 83135c31c9
refactor(acp): extract generic current conversation binding store 8 months ago
Peter Steinberger ee73342445 refactor: use channel runtime for imessage readiness 8 months ago
Peter Steinberger 277af32485 refactor: remove plugin sdk extension facade smells 8 months ago
Peter Steinberger 68416fdf83
refactor(acp): generalize message-channel binds 8 months ago
Peter Steinberger c42ec81e37
feat(acp): add conversation binds for message channels 8 months ago
Tak Hoffman a724246547
fix(regression): restore imessage cold-runtime chunking 8 months ago
Peter Steinberger 4ca07559ab refactor: move provider seams behind plugin sdk surfaces 8 months ago
Peter Steinberger 992b30604d refactor: move extension-owned tests to extensions 8 months ago
Peter Steinberger 40bd36e35d
refactor: move channel config metadata into plugin-owned manifests 8 months ago
Peter Steinberger 0e182dd3e1 refactor: share top-level setup dm policies 8 months ago
Peter Steinberger be328e6cd1 test: dedupe extension channel fixtures 8 months ago
Matt Van Horn e0972db7a2
fix: stop leaking reply tags in iMessage outbound text (#39512) (thanks @mvanhorn)
* fix: stop leaking reply tags in iMessage outbound text (#39512) (thanks @mvanhorn)

* fix: preserve iMessage outbound whitespace without directive tags (#39512) (thanks @mvanhorn)

---------

Co-authored-by: Ayaan Zaidi <hi@obviy.us>
8 months ago