Skip to content

[DOCS] Document the daemon.yaml binding config and the channel thread path #870

Closed

Description

PR #1421 (feature(telegram): run Telegram sessions through daemon workers) added a new public-facing config surface and changed how channels process messages, but the docs do not cover either yet.

Summary

The daemon gained its own daemon.yaml sidecar (loaded in cmd/runtime/config.go) that turns the AG-UI WebSocket binding on independently of browser_use, with its own port and token falling back to browser_use.extension's values. The Telegram (and channel) path now drives one thread per sender through the daemon's session registry over in-process frames instead of spawning an infer headless process per message, and renders replies from the worker's AG-UI events (docs/ag-ui-output.md already documents that stream).

Acceptance Criteria

  • docs/configuration-reference.md documents the daemon.yaml sidecar: daemon.binding.enabled, daemon.binding.port, daemon.binding.token, the browser_use.extension port/token fallback, and the INFER_DAEMON_* env override pattern (e.g. INFER_DAEMON_BINDING_ENABLED)
  • docs/channels.md describes the new thread path: one session worker per sender thread, resume_conversation/user_message frames, approvals and questions answered as interrupts, and channels.require_approval off meaning gated tools get auto-rejected; remove any wording that promises a process per message
  • docs/browser-extension-protocol.md notes that the binding now listens whenever daemon.binding.enabled is set (or fallback applies) and that the browser extension relay only attaches with browser_use backend: extension
  • examples/telegram-channel/ README and docker-compose config no longer assume a spawned process per message and call out the daemon requirement

Reference: inference-gateway/cli#1421 (resolves inference-gateway/cli#1401).

Activity

  1. added
    documentation
    on Sep 30, 2026
  2. edenreich commented on Sep 30, 2026

    @edenreich
    Contributor

    @claude Can you document this?

  3. added theissue type on Sep 30, 2026
  4. inference-gateway-maintainer commented on Sep 30, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 5m 9s —— View job • docs/issue-870-20260930-1009 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-870-20260930-1009?quick_pull=1&title=Issue%20%23870%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23870%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documented the daemon.yaml binding config and the channel thread path

    • Map the issue's docs/* paths onto this repo's actual pages
    • Read the upstream CLI sources for the daemon.yaml surface
    • Document daemon.yaml binding config in cli.md
    • Update cli-channels.md with the session-worker thread path
    • Note binding/relay behavior in opentask.md
    • Validate (lint:md, format:check, build) and open a PR

    PR: #871

    The acceptance criteria name files in the CLI repo (docs/configuration-reference.md, docs/channels.md, docs/browser-extension-protocol.md). This site splits the same material differently, so the content landed on the matching pages here.

    cli.md - "Starting the daemon" documents the daemon.yaml sidecar (binding.enabled/port/token), the browser_use.extension port and token fallback, the empty-token boot failure, and the INFER_DAEMON_BINDING_* env overrides. It also separates the binding from the extension relay: the relay attaches only with browser_use.enabled and backend: extension, so a binding enabled through daemon.yaml alone serves threads but drives no browser. daemon.yaml added to the configuration files table.

    cli-channels.md - "How Channels Work" rewritten around the thread path: one session worker per sender thread, resume_conversation plus user_message frames with images as attachments, the remote-control system prompt, idle detach and reattach. Approvals are interrupts answered with approval_response on the shared contract; AskUserQuestion is dismissed; channels.require_approval: false auto-rejects gated tools rather than granting them (called out in a warning, since the old wording read like it turned gating off). Removed the per-message-process wording from the key features, the troubleshooting table, and the max_workers description.

    opentask.md - The connection steps and the transport section note that the binding listens on daemon.binding.enabled (or the browser_use fallback), that daemon.binding.port/token override browser_use.yaml, and that the extension still needs backend: extension for the relay.

    Not done: acceptance criterion 4 (the examples/telegram-channel/ README and compose file) lives in inference-gateway/cli, outside this repo - it needs a PR there.

    bun run lint:md, bun run format:check and bun run build all pass.
    | Branch

  5. inference-gateway-releaser commented on Sep 30, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.19 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions