FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

docs: document non-TUI input and one-shot --message contract by chrisnestrud · Pull Request #698 · cecli-dev/cecli · GitHub

Repository navigation

docs: document non-TUI input and one-shot --message contract - #698

Open
chrisnestrud wants to merge 1 commit into
cecli-dev:mainfrom
chrisnestrud:docs/non-tui-input-contract
Open

chrisnestrud wants to merge 1 commit into
cecli-dev:mainfrom
chrisnestrud:docs/non-tui-input-contract

Conversation

Copy link
Copy Markdown

What

Documents the input contract for non-TUI sessions:

  • --message / --message-file are one-shot: cecli sends the message, lets
    the model act, then exits. There is no follow-up prompt, so a question-ending
    instruction has nowhere to collect an answer. --yes covers fully
    non-interactive runs.
  • Interactive input comes from the TUI box (tui: true), stdin re-prompted per
    turn (tui: false), or a queue push ({"text": ...}, {"confirmed": ...})
    from the WebSocket/ACP server and the AgentService wake path.
  • TUI and non-TUI consume the same per-coder queue, so a headless or
    server-driven session can answer prompts with no terminal.

Files: cecli/website/docs/config/tui.md, cecli/website/docs/scripting.md.

Sequencing

Depends on #697 (the non-TUI queued-input fix). Merge that first so the
queue contract described here is accurate. Docs only; no code change.

Record the input contract that non-TUI mode now guarantees:

- --message / --message-file are one-shot; there is no follow-up answer path
  in that mode, so a question-ending instruction cannot be answered. Multi-turn
  runs use interactive mode instead.
- In interactive mode input comes from the TUI box (tui: true), from stdin with
  a re-prompt per turn (tui: false), or from a queue push ({"text": ...} and
  {"confirmed": ...}) used by the WebSocket/ACP server and the AgentService
  wake path.
- Both the TUI and non-TUI input paths consume the same per-coder queue, so a
  headless or server-driven session can answer prompts with no terminal.

Documentation only; no code change. Planned to merge after the non-TUI
queued-input fix so the queue contract it describes is accurate.

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL