Documentation
Agent sessions: keep notifications and replies in one conversation
Use Ntfyx Session conversations: group CLI and agent messages by session ID inside a Topic, confirm the original message, and send text replies with a clear reference.
Updated
Availability: released
#Session conversations are available in CLI 0.1.3+, iOS 1.1.0+, Android 1.1.0+ and the Web Inbox. Run ntfyx upgrade if your CLI help does not list --session-id. The homepage animation illustrates the installed experience and does not operate a real agent.
Inbox → Topic → Session → messages
#A Topic is an authorized delivery channel. A Session is a conversation within that Topic, usually representing one agent run, deployment or long-running job. The Inbox groups conversations under their Topics and shows each session’s latest message. Opening a session shows notifications and questions in their original order, with verified replies attached to the corresponding messages.
Session grouping does not create another Topic or change its access controls.
| Level | Purpose | Example |
|---|---|---|
| Inbox | Your authorized receiving device | Phone or Web Inbox |
| Topic | Sources, permissions and notification settings | Development |
| Session | One task and its conversation | Release v2.4 |
| Message | A notification or one request for input | Build passed / Publish preview? |
Use one ID for an agent run
#An agent or script can set NTFYX_SESSION_ID and optionally NTFYX_SESSION_NAME for a run. Explicit command flags override the environment. The --sessionid spelling is also accepted. Choose non-secret opaque identifiers; session names provide the readable context.
export NTFYX_SESSION_ID=release-24
export NTFYX_SESSION_NAME="Release v2.4"
ntfyx send "Tests passed"
ntfyx ask "What should I check next?" --textConfirm the message; quote the question
#Allow once, Deny and choice options appear on the message asking for the decision. For a text answer, tap the message or select Reply. The composer quotes that question. Close it to keep a draft without sending; select another message to answer that one. A newly arriving question does not replace the current reply target.
Sent answers appear below a light divider inside the original message, with their own reply time and delivery status. The original message keeps its place in the conversation. Sending, retry and terminal states stay attached to the request they describe.
Delete an entire conversation on this device
#The updated Web Inbox provides Delete conversation in the conversation actions, with confirmation. The same feature arrives on phones with Ntfyx 1.4 after store approval. It removes the conversation’s existing messages, unread markers and unsent drafts on the current device. Paging, sync and restart keep that old history hidden; later new messages can make the conversation appear again.
Other conversations and devices are unchanged. Already signed replies remain queued, and pending actions remain separately reviewable. Deleting a conversation does not cancel a request or a store subscription.
No session ID means a separate conversation
#An ordinary notification without a session ID keeps the independent-message behavior: each new notification becomes a separate session. Equal titles do not merge messages. Requests remain separate decisions even when they share a session ID; replying to one does not answer the others. Session grouping does not restore earlier history to a newly authorized browser.
Grouping does not change approval or encryption
#The sender still verifies the reply against the original request, revision and deadline. Cancellation, expiry and a Deny never become an Allow. Messages and replies remain end-to-end encrypted for authorized devices, while the relay retains operational metadata. A session is not a general chat endpoint and does not grant remote-shell access.
Use the existing result and single-claim workflow for actions that must run only once.