Skip to content

Bridge tracer: Lark images in Channel bubbles with authorized retained history #1021

Closed

Description

@DoodleBears

Parent

#1020 — Authorized Bridge media in Channel history. Coordination: #48.

What to build

Human sees real Lark/Feishu images inside their originating Channel message bubble, can enlarge them, and can reopen acquired images after refresh/restart with explicit stop and revocation behavior. Establish the common extensible media contract through this working image path.

Acceptance criteria

  • Qualify the real Lark/Feishu image resource association, including supported multi-image/mixed native messages. Preserve trusted source linkage rather than treating prose URLs as image resources.
  • Load image previews when visible; clicking enlarges them. Navigation/disposal cancels obsolete work, and failure/retry does not create duplicate canonical messages or unbounded acquisition.
  • Implement the shared non-secret media references and Human Channel media authorization/retention seam through the image behavior. Existing Bot source access restrictions are not weakened. Future providers can use this contract without a separate media-message authority.
  • Deliver one production-shaped path through qualified Provider intake, canonical Source Event, realtime and historical Channel projection, authorized Host media access and operable bubble UI. Do not start a competing receiver or a second message store.
  • Preserve external author, source-name button/Modal, message boundary and known item ordering. Multiple and mixed media remain one native message; unknown ordering/metadata is honest. Provider URLs, tokens, AES keys and credentials remain private.
  • Human Channel access resolves trusted media authorization without choosing or borrowing a Bot identity. Recheck placement, source/media identity, current Channel access and independent valid source authorization during acquisition and serving.
  • Visible-image previews acquire on visibility; audio/video and file actions acquire on explicit action. Reuse existing Host Attachment management; keep the default 25 MiB bound, cancellation and bounded concurrency. Display loading, too-large, unsupported, failure and retry states honestly.
  • After acquisition, refresh and Host restart retain authorized history access. Ordinary Bridge reception stop allows acquired-media viewing but no new acquisition through that stopped path. Unbind/media revocation prevents acquisition and serving through that authorization; independent valid paths remain independent. Do not resurrect Content Purge content.
  • Human viewing creates no Bot Observation, model-context change, Inbox admission, wake or external send authority. Inbox-only creates no Channel history. Bot understanding and own-identity permissions remain unchanged.
  • Complete focused observable regression coverage and real platform/media E2E: receive a uniquely identifiable native message, inspect actual bytes/preview/play/download as applicable, refresh/restart, and demonstrate relevant stop/revoke/error recovery. Mock payloads, flags and HTTP success alone are not platform proof.
  • Provide GitHub-renderable matched before/after light/dark screenshots, relevant playback/recovery recording and usable Human verification steps. Follow DSH tokens/primitives and keyboard/accessibility conventions; keep private chat content and secrets out of evidence.
  • Update applicable canonical English/Chinese user guidance and bilingual release ledgers for delivered behavior; do not edit generated docs. Deliver one issue-linked PR with task claim/trace and review-risk classification, then pause for Human QA before expanding dependent slices. Merge/deployment require separate authorization.

Blocked by

None (can start immediately).

Planning and authority

Project: V1.1 · IM Identities & Messaging (#10). Milestone: v1.2, explicitly selected by Human; Project title does not override milestone. Human approved ticket granularity and blocking edges before publication. This publication does not claim implementation or take over existing WeChat work.

Activity

  1. added this to the v1.2 milestone on Oct 6, 2026
  2. added
    ready-for-agentFully specified, ready for an AFK agent
    area:fullstackEnd-to-end Host and Client implementation
    feature:channelChannel chat, timeline, composer, and navigation
    feature:messagingMessaging module and external providers
    scope:tracerHuman-testable implementation slice
    on Oct 6, 2026
  3. DoodleBears commented on Oct 6, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim

    Human authorized implementation after confirming specification #1020, one issue per PR, visual-pr/pr-lens and applicable real visual evidence. This task will deliver the #1021 PR and then wait for Human QA before expanding dependent slices. Existing WeChat #902/#909/#907 work remains under its current owner.

  4. added
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    in-progressHeld by an agent session; see Claim comment for who
    on Oct 6, 2026
  5. DoodleBears commented on Oct 6, 2026

    @DoodleBears
    ContributorAuthor

    Agent progress — draft implementation

    • Agent: Codex
    • Task: codex/local/01a11170-40ca-7ac2-8d85-829b61128269 (not a DSH Session)
    • State: active; real platform/UI acceptance pending
    • PR: feat: show authorized Lark images in Channel bubbles (#1021) #1056 (draft, milestone v1.2)
    • Implementation: qualified native Lark image/post descriptors and order; original Channel bubble; visible-only preview/enlargement; current Channel/source authorization and retained acquired Attachment lifecycle.
    • Evidence: 112 focused Core/Client tests and all 3,590 Provider tests pass; build, lint, types, formatting, ledgers, docs build and artifact packing pass. Exact-head full-repository verification is in progress. PR Lens light/dark diagrams were locally validated, inspected and verified to load in GitHub.
    • Remaining: system Chrome reports ERR_BLOCKED_BY_CLIENT for the isolated local QA UI. Human has authorized reusing the idle IM tracer: real Lark application setup with resumable guided onboarding #824 QA app and approved QA group, but no credentials/receiver have been connected here and no fresh native image or matched runtime visual evidence is claimed. Restore normal browser access, complete native image bytes/preview/restart/stop/revoke/retry E2E and visual evidence, then seek Human QA. Existing VPS/WeChat receivers remain under their current tasks.

    The PR uses Refs #1021; it does not finish the acceptance checklist or start dependent slices.

  6. 7 remaining items

  7. removed
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 6, 2026
  8. DoodleBears commented on Oct 6, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim — continue real media acceptance

    Corrected head 1b7d20e8d1cdf26e13b4473bed7dff6a98750fe9 has now received a fresh real native rich post with two images. Canonical Source Event preserves order; both original PNGs match the native uploaded fixtures (3,038/3,123 bytes), show in the Channel, enlarge and retain through refresh. A second real image sent while the Profile view was open stayed unacquired; stopping its connector refused first image acquisition, and restoring the same connector allowed that same event to acquire. Already acquired images remained readable while stopped. Remaining exact-head restart, authorization refusal/retry and matched light/dark base/head evidence are in progress. The original QA app/grants remain unchanged; no synthetic Source Events, scope expansion, merge or deployment.

  9. added
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 6, 2026
  10. DoodleBears commented on Oct 6, 2026

    @DoodleBears
    ContributorAuthor

    QA evidence correction for the current task: the STOP-BEFORE Source Event is real and its initial acquisition refusal was observed after stopping reception. The subsequent wait matched the two already loaded FIX01 images; its screenshot remained on FIX01 while the new image was below the visible viewport. Read-only receipt verification confirms two acquired files, not three. The same connector is restored enabled, but STOP-BEFORE recovery remains pending until its own image is scrolled into view and its distinct receipt is verified. FIX01 actual bytes, order, enlargement/source Modal and refresh evidence remain valid. No canonical data was injected or changed. Task codex/local/01a11170-40ca-7ac2-8d85-829b61128269, same PR #1056 and head 1b7d20e8d1cdf26e13b4473bed7dff6a98750fe9.

  11. DoodleBears commented on Oct 6, 2026

    @DoodleBears
    ContributorAuthor

    Agent work outcome — native evidence delivered, paused for Human QA

    • Agent: Codex
    • Task: codex/local/01a11170-40ca-7ac2-8d85-829b61128269 (not a DSH Session)
    • State: paused for Human QA under the confirmed one-issue/one-PR workflow
    • PR: feat: show authorized Lark images in Channel bubbles (#1021) #1056, draft/open, milestone v1.2; head 1b7d20e8d1cdf26e13b4473bed7dff6a98750fe9; qualified Provider c23340166ba313055a7ac530cf65381e4b774fe6
    • Real native proof: unique mixed post, trusted mention/message/resource association, actual PNG bytes with uploaded-file checksums, original text/image order in one bubble, enlargement and source Modal. Separate STOP-BEFORE image now has its own visible preview and distinct acquired receipt; total three files. This supersedes the earlier offscreen recovery uncertainty.
    • Lifecycle: refresh and exact-head restart retain bytes; ordinary reception stop retains acquired access and refused the initially unacquired image; disabling existing identity denies cached originals and Retry; restoring the same identity restores access. Original identity/grant/connector are enabled at the end. No new permissions, competing receiver or synthetic Source Event.
    • Matched base/head light/dark screenshots and recovery steps/video are embedded in the visual-pr/pr-lens description and verified to render in GitHub. Only isolated QA views are published. Video is an actual UI keyframe sequence, not continuous screen capture; exact reproduction steps are provided.
    • Checks: BotHarness 2,912 pass / 9 skip (one full-run docs timeout passed on serial rerun); Provider 3,593 pass; lint/types/format/bilingual ledgers/Host+Client build/product packing pass. Worktree clean. Draft CodeRabbit status is not a completed review or repository CI suite.
    • Remaining: Human QA and review; fresh grant-revoke/unbind/independent-path/purge variants were not executed on the reused QA app and remain automated-only coverage. Issue remains open and PR uses Refs, not Closes.

    No dependent slice, merge or deployment has started. Existing QA app/account, credentials, canonical records/files and final qualified runtime are preserved.

  12. removed
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 6, 2026
  13. DoodleBears commented on Oct 6, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim — authorized merge and conflict resolution

    Human explicitly requested merge and continuation. Existing real QA evidence remains tied to head 1b7d20e8d1cdf26e13b4473bed7dff6a98750fe9; conflict-resolution validation will be recorded separately. No deployment or takeover of another task's receiver.

  14. added
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 6, 2026
  15. DoodleBears commented on Oct 6, 2026

    @DoodleBears
    ContributorAuthor

    Agent work outcome

    • Task: codex/local/01a11170-40ca-7ac2-8d85-829b61128269
    • State: completed after Human-authorized merge and continuation
    • PR: feat: show authorized Lark images in Channel bubbles (#1021) #1056, merged at 1ff0291aac220469694aac3d54feca19a9189b62; exact reviewed head 45b2d16e7745fd30c90a29b276cfa4546da7194a, all GitHub checks passed.
    • Real Lark mixed-image original bytes, display/enlargement/source, refresh/restart, reception-stop and identity-disable/restore evidence is in the PR. Grant-unbinding/revocation, independent paths and purge variants remain automated coverage rather than fresh reused-app mutations.
    • Next: Bridge tracer: Lark file cards with download and safe open-with #1022 in a separate worktree and PR, then Human QA. No deployment.
  16. removed
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    in-progressHeld by an agent session; see Claim comment for who
    on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:fullstackEnd-to-end Host and Client implementationfeature:channelChannel chat, timeline, composer, and navigationfeature:messagingMessaging module and external providersready-for-agentFully specified, ready for an AFK agentscope:tracerHuman-testable implementation slice

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions