Skip to content

feat(events): a setting to fold each agent session into one row - #306

Open
adefreitas wants to merge 1 commit into
StackOneHQ:mainfrom
adefreitas:feat/fold-session-nudges
Open

adefreitas wants to merge 1 commit into
StackOneHQ:mainfrom
adefreitas:feat/fold-session-nudges

Conversation

@adefreitas

@adefreitas adefreitas commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

This PR adds a setting that gives each agent session one row in the Events tab instead of a stack of finished turns. It lives at Settings → Events → Fold each session (STACKNUDGE_FOLD_SESSIONS) and is off by default, so nothing changes until you turn it on.

With it on, a session's finished turns and other notices fold into one row showing the newest. Space or → expands it to the earlier ones, using the same row expansion as folded PR comments. Permission prompts and questions keep their own rows, because ⏎ answers that one prompt. Event history still records every notice. MCP clients can read and write the setting through the settings registry.

Before

Screenshot 2026-12-02 at 16 48 57

Setting

Screenshot 2026-12-02 at 16 49 10

After

Screenshot 2026-12-02 at 16 50 41

Checks

  • make test-without-xcode passes: 2151 tests, 0 failures. New tests check that folding is off by default, that one session folds newest first with the earlier notices as members, that two sessions stay apart, and that prompts and questions never fold.
  • Tried in a local build: four Stop events from one session, one of them ending on a question, arrived as expected in the event log.

🤖 Generated with Claude Code

@adefreitas
adefreitas force-pushed the feat/fold-session-nudges branch from 18b6c1a to 498c604 Compare December 3, 2026 11:00
Settings → Events → Fold each session (STACKNUDGE_FOLD_SESSIONS), off by
default. On, a session's finished turns and other notices share one row
showing the newest, with the earlier ones under it (Space or → expands).
Permission prompts and questions keep their own rows, since ⏎ answers
that one prompt. Event history still records every notice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adefreitas
adefreitas force-pushed the feat/fold-session-nudges branch from 498c604 to a82fff0 Compare December 3, 2026 11:21
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