EphemeralReply type with auto-delete TTL #659

Closed
opened 2026-10-27 13:37:14 +00:00 by sam · 0 comments
Owner

An EphemeralReply type for messages the gateway sends that should self-delete after a TTL — status/progress placeholders ("thinking…", "running tool X…") that shouldn't linger in the chat history once superseded.

Context for implementers

No ephemeral-reply file exists yet in internal/gateway. Deletion requires adapter support: BasePlatformAdapter (internal/gateway/adapter.go) currently exposes only Connect/Disconnect/Send/ChatInfo — no delete method. This depends on (or should land alongside) archie-core-1786637493329-136-49b39c78 (BasePlatformAdapter optional methods, which includes delete) — an adapter without a delete method can't honor the TTL.

Acceptance Criteria

An EphemeralReply carries a TTL after which the gateway issues a delete against the originating adapter. Adapters without delete support degrade gracefully (e.g. leave the message, log once) rather than erroring the turn. TTL firing is covered by a test using an injected clock, not a real sleep.

Close reason

Closed


Imported from beads archie-core-1786637493282-134-cf46838e · GitHub #155 · type task · priority P2 · created 2026-08-08 · closed 2026-10-02

An `EphemeralReply` type for messages the gateway sends that should self-delete after a TTL — status/progress placeholders ("thinking…", "running tool X…") that shouldn't linger in the chat history once superseded. ### Context for implementers No ephemeral-reply file exists yet in `internal/gateway`. Deletion requires adapter support: `BasePlatformAdapter` (`internal/gateway/adapter.go`) currently exposes only `Connect`/`Disconnect`/`Send`/`ChatInfo` — no delete method. This depends on (or should land alongside) `archie-core-1786637493329-136-49b39c78` (BasePlatformAdapter optional methods, which includes delete) — an adapter without a delete method can't honor the TTL. ### Acceptance Criteria An `EphemeralReply` carries a TTL after which the gateway issues a delete against the originating adapter. Adapters without delete support degrade gracefully (e.g. leave the message, log once) rather than erroring the turn. TTL firing is covered by a test using an injected clock, not a real sleep. ### Close reason Closed --- _Imported from beads `archie-core-1786637493282-134-cf46838e` · GitHub #155 · type task · priority P2 · created 2026-08-08 · closed 2026-10-02_
sam added the mediumtask labels 2026-10-27 13:37:14 +00:00
sam self-assigned this 2026-10-27 13:37:14 +00:00
sam closed this issue 2026-10-27 13:37:14 +00:00
sam added a new dependency 2026-10-27 13:42:09 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#659