Skip to content

fix(photon): un-shadow U+FFFC deferred-wait handler + stale sidecar-deps fixture (red on main) - #73763

Merged
teknium1 merged 1 commit into
mainfrom
fix/photon-fffc-shadowed-handler
Jul 29, 2026
Merged

fix(photon): un-shadow U+FFFC deferred-wait handler + stale sidecar-deps fixture (red on main)#73763
teknium1 merged 1 commit into
mainfrom
fix/photon-fffc-shadowed-handler

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

Repairs 6 Photon tests red on current main (CI slice 8/8, failing unrelated PRs — first seen on #73761): two independent cross-PR collisions.

  1. Shadowed U+FFFC handler: fd4f756 (salvaged from stale fix(photon): ignore iMessage media placeholders #54514, written before the deferred-wait handler existed) added an early "drop U+FFFC placeholder" return at the top of _dispatch_inbound. It shadowed the deferred-wait handler further down the same function (6b91b50/afab7ed46e): _pending_fffc never populated, no attachment-timeout tracking or cancellation — 4 tests red, and the regression is real behavior loss, not just test drift (a placeholder with no follow-up attachment now timed out silently with no warning). Removing the duplicate restores the full handler; it already drops the placeholder.
  2. Stale fixture: 9cf2046 tightened sidecar_deps_installed() to require node_modules/spectrum-ts (empty node_modules from aborted npm installs read as "installed"), but test_runtime_record's _patch_spawn fixture still created bare node_modules/ — 2 tests red.

Changes

  • plugins/platforms/photon/adapter.py: remove the duplicate early-return placeholder block (deferred-wait handler is the single owner)
  • tests/plugins/platforms/photon/test_runtime_record.py: fixture mirrors a real completed install

Validation

Before After
tests/plugins/platforms/photon/ on main 158 pass / 6 fail 164 pass / 0 fail

Infographic

photon fffc fix

…decar-deps fixture

Two independent cross-PR collisions red on main (slice 8/8):

1. fd4f756 (salvaged from stale #54514) added an early 'drop U+FFFC
   placeholder' return at the top of _dispatch_inbound — written before
   the deferred-wait handler (6b91b50/afab7ed46e) existed further
   down the same function. The early return shadowed it: _pending_fffc
   never populated, no attachment-timeout tracking, 4 tests red. Remove
   the duplicate block; the deferred handler already drops the
   placeholder AND tracks/cancels/warns.

2. 9cf2046 tightened sidecar_deps_installed() to require
   node_modules/spectrum-ts, but test_runtime_record's _patch_spawn
   fixture still created only bare node_modules/ — 2 tests red. Mirror
   a real completed install.

tests/plugins/platforms/photon: 164/164 after; 158/164 before.
@github-actions

github-actions Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

૮ >ﻌ< ა ci review

ran on 56d76be

ℹ️ Info

Desktop E2E visual evidence · View test artifacts · View job

1 visual diff.

inline evidence upload failed.

Failed to upload diff-665a0833239e-onboarding-overlay-diff.png with gh image (exit code 1): Error uploading /home/runner/work/_temp/e2e-evidence/diff-665a0833239e-onboarding-overlay-diff.png: step 0 (get upload token): uploadToken not found on repo page — do you have write access to NousResearch/hermes-agent? (or, if NousResearch enforces SAML SSO, authorize at https://github.com/orgs/NousResearch/sso)

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/plugins Plugin system and bundled plugins sweeper:risk-message-delivery Sweeper risk: may drop, duplicate, misroute, or suppress messages duplicate This issue or pull request already exists labels Jul 29, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

Duplicate of #73762. Both current diffs remove the same early U+FFFC placeholder drop and repair the same sidecar-dependency fixture; #73762 is the earlier open version.

@teknium1
teknium1 merged commit ceaa788 into main Jul 29, 2026
43 checks passed
@teknium1
teknium1 deleted the fix/photon-fffc-shadowed-handler branch July 29, 2026 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/plugins Plugin system and bundled plugins duplicate This issue or pull request already exists P3 Low — cosmetic, nice to have sweeper:risk-message-delivery Sweeper risk: may drop, duplicate, misroute, or suppress messages type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants