Skip to content

feat(extensions): show service feed events, with an action and retract - #283

Merged
StuBehan merged 2 commits into
mainfrom
feat/service-extension-feed
Nov 24, 2026
Merged

StuBehan merged 2 commits into
mainfrom
feat/service-extension-feed

Conversation

@StuBehan

@StuBehan StuBehan commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Service extensions' feed lines show in Events now, rather than being logged and dropped. They come from a new extension source, named for the extension, with a cap of 20 each so one extension can't push another's events out (or a script's). A script claiming extension on the socket is read as a script.

A keyed feed event can carry one action. ⏎ on it sends {"type":"action","id":"send","feed":"<key>"} back to the extension instead of opening the link, and the footer shows the action's label. O still just opens it. An extension's row keeps the extension's icon and colour whatever tag it uses. Sending takes the action off the row so a double ⏎ can't send twice, and if the extension stops or restarts its rows lose their actions until it posts them again. Actions aren't kept in the event log either, so a restored row has none. A new retract message takes a row back out.

Changes to existing behaviour worth a look:

  • a feed key only replaces an event (or its banner) from the same source and the same extension. Before, a script could replace a GitHub event by reusing its key
  • a replaced keyed event is logged as removed, and restoring keeps the newest per key. Before, every version of a keyed event came back after a relaunch
  • past the overall cap of 100, feed events go before anything from an agent, so a lot of feeds can't push a waiting prompt out
  • the 2s dedup in EventStore.append compares title, key, extension and action too. It was dropping two different feed events that happened to share a message

Stacked on #282.

Base automatically changed from feat/service-extension-keys to main November 24, 2026 23:02
@StuBehan
StuBehan force-pushed the feat/service-extension-feed branch from d532e88 to 5f04f36 Compare November 24, 2026 23:02
@StuBehan
StuBehan merged commit 428bb74 into main Nov 24, 2026
6 checks passed
@StuBehan
StuBehan deleted the feat/service-extension-feed branch November 24, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant