Skip to content

feat(sessions): suggestion queue + typing indicator - #113173

Merged
steipete merged 37 commits into
mainfrom
collab/w3-suggestions
Jul 24, 2026
Merged

steipete merged 37 commits into
mainfrom
collab/w3-suggestions

Conversation

@steipete

@steipete steipete commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

On suggest-visibility sessions, people who are not participants need a safe way to contribute without dispatching directly into the active agent session. Owners and collaborators also need a clear way to review those suggestions, while multi-user sessions need lightweight typing feedback without adding transcript or presence-history noise.

Why This Change Was Made

This adds a suggestion queue for suggest-visibility sessions. A non-participant composer becomes Suggest and queues the text instead of dispatching it. Owners, members, and administrators see pending suggestions inline with four actions: arrow-up sends now using steer even during an active run, checkmark enqueues through the normal chat queue, edit loads the text into the composer, and delete dismisses it. Suggested-by attribution reuses the existing sender fields.

The change also adds a presence-based ephemeral typing indicator. It is throttled, has its own event scope guard, respects draft and session visibility filtering, and is never persisted. The session_suggestions SQLite table is additive, lazily ensured, and does not advance the schema version. Solo sessions remain dormant, and draft-session suggestion access stays owner/admin-only.

User Impact

People can contribute suggestions to shared agent work without interrupting or directly controlling the run. Session owners and collaborators can steer, queue, edit, or dismiss each suggestion inline, with clear attribution. Multi-user sessions show who is typing, while single-identity sessions retain the existing uncluttered experience.

Evidence

  • Focused Control UI behavior tests cover suggestion caching, same-key session replacement, all four actions, archived-session restrictions, and solo dormancy.
  • Focused Gateway and storage tests cover authorization, draft visibility, dispatch modes, sender attribution, typing filtering/throttling, durable recovery, replacement races, and additive SQLite behavior.
  • Core and UI tsgo lanes pass.
  • The merge-base-pinned changed gate passes formatting, typechecks, core/UI/packages lint, Swift lint, app tests, database guards, and import-cycle checks.
  • Protocol generation and protocol checks pass. The new suggestion RPCs and typing event are additive and backward-compatible.
  • The session_suggestions SQLite table is additive, lazily ensured, and backward-compatible with no schema-version bump.
  • Codex autoreview reports no accepted or actionable findings.
  • This PR also registers the newly landed iOS release-plan and release-cut TS executables as Knip entrypoints; current main added their shell/Fastlane callers without that deadcode metadata, which blocked the shared CI gate.

@openclaw-barnacle openclaw-barnacle Bot added app: android App: android app: web-ui App: web-ui gateway Gateway runtime size: XL maintainer Maintainer-authored PR labels Jul 23, 2026
@steipete steipete self-assigned this Jul 23, 2026
@steipete
steipete marked this pull request as ready for review July 23, 2026 23:13
@steipete
steipete force-pushed the collab/w3-suggestions branch from 66d91ad to 87642fd Compare July 24, 2026 00:02
@steipete
steipete force-pushed the collab/w3-suggestions branch from 87642fd to 1239a54 Compare July 24, 2026 01:37
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Jul 24, 2026
@steipete
steipete merged commit 90aee82 into main Jul 24, 2026
122 checks passed
@steipete
steipete deleted the collab/w3-suggestions branch July 24, 2026 02:00
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 24, 2026
* feat(protocol): add session collaboration contracts

* feat(gateway): add session suggestion queue and typing

* feat(ui): add session suggestion controls

* fix(collaboration): restrict suggestion resolution

* fix(collaboration): dedupe suggestion dispatch modes

* fix(collaboration): preserve resolver identity

* fix(collaboration): reconcile suggestion state

* fix(collaboration): filter identityless suggestion events

* fix(ui): expose full suggestion text

* fix(collaboration): durably claim suggestion dispatch

* fix(collaboration): harden suggestion events and typing

* fix(collaboration): reconcile suggestion races

* fix(ui): reconcile suggestion capabilities

* fix(collaboration): close suggestion privacy races

* test(ui): satisfy suggestion lifecycle lint

* fix(collaboration): fence resolved suggestion events

* test(collaboration): type deferred audit result

* fix(collaboration): fence delayed typing events

* fix(ui): coalesce suggestion refreshes

* fix(ui): preserve resolved self suggestions

* fix(collaboration): enforce draft suggestion visibility

* fix(collaboration): fence post-dispatch finalization

* fix(ui): retain suggestions across visibility changes

* fix(collaboration): fence suggestion context and archives

* fix(collaboration): fence suggestion resolve lifecycle

* fix(collaboration): map suggestion replacement races

* refactor(gateway): extract session typing state

* fix(collaboration): integrate suggestion storage with session nodes

* refactor(gateway): extract session sharing snapshot cache

* fix(collaboration): satisfy protocol and deadcode gates

* fix(ci): register iOS release script entrypoints

* fix(collaboration): fence typing by session instance

* fix(collaboration): enforce incognito suggestion privacy

* docs(ui): clarify solo suggestion dormancy

* test(gateway): preserve incognito literal type

* test(gateway): split session typing coverage

* test(gateway): register collaboration method expectations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: web-ui App: web-ui gateway Gateway runtime maintainer Maintainer-authored PR scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant