## Why
The Agents overview can go stale when Cloud threads change from another
client, especially when the TUI has no conversation stream attached.
## What changed
- Use Cloud stream notifications to update thread status and refresh the
thread list. Poll every 10 seconds while the overview is visible and
no stream is attached.
- Refresh the history already shown while preserving the `Show more`
cursor. Use fresh list metadata for thread names, recency, and unread
state, and restore rows when a refresh catches a missed unarchive.
## Testing
Cover Cloud inventory notifications, polling while detached, pagination
across refreshes, and recovery from a missed unarchive.
GitOrigin-RevId: 63c98438b6ddd2e47dd2d1f419c2a676508c6d91
## Why
Automatic mailbox wakes can start new turns while the app-server is
draining or has paused turn admission. Native child results still need
to reach the parent during drain so they can survive a daemon restart.
## What changed
- Require a turn admission permit for ordinary automatic mailbox wakes
and hold it through turn registration. Retry queued work when a
temporary pause ends. Explicit follow-ups and native child results can
still wake the parent during drain.
- Let `thread/inject_items` queue plain-text agent messages for native
child threads when native tools are enabled. Injected mail follows the
ordinary wake rules.
- Extract the remote app-server client, shared event and request types,
and WebSocket compression into `codex-app-server-remote-client` so
callers can use them without linking the app-server runtime.
## Testing
Cover delivery of queued mail when admission reopens, injection into
native child threads, and recovery of a child result after a daemon
restart.
GitOrigin-RevId: 4c5ceeca8829c2612cc2b6b74c03d0c7677a9244