feat(host): oneshot, theme, approvals, attachments, compaction - #101
Merged
Conversation
* feat(host): oneshot runs, theme, approvals, attachments, compaction Add ALTAI-facing host APIs: run_oneshot + observe/scripted providers, HostThemeMode, four-way approval overlays with edit diffs, text/PDF @file attachments, and compact_* HostConfig overrides for CLI parity. Co-authored-by: Cursor <cursoragent@cursor.com> * feat(oneshot): resume approvals on controlling TTY When /dev/tty (or CONIN$) is available, prompt for approve/deny/always/abort instead of exiting with ApprovalRequired. Non-TTY callers keep exit-4 behavior. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(bin): use public host::HostThemeMode in main cargo check --all-targets failed because the binary cannot reach the crate-private channels::terminal_ui module. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(logging): allow re-init when logger already installed Tests that start multiple hosts in one process hit SetLoggerError; treat an already-installed runtime logger as success. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com> (cherry picked from commit 209d76e)
There was a problem hiding this comment.
The PR successfully introduces headless one-shot command execution for embedding hosts. The implementation includes proper error handling, TTY approval resumption, and comprehensive test coverage. All changes are well-structured and follow established patterns in the codebase.
You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.
Allow /key in TUI and line mode after the session opens: hot-swap via SwitchModel and persist api_key into config.toml without echoing secrets. Co-authored-by: Cursor <cursoragent@cursor.com>
monatis
approved these changes
Jul 30, 2026
4 tasks
efecnc
added a commit
to altaidevorg/altai-app
that referenced
this pull request
Jul 30, 2026
Drop the temporary tools/isanagent-oneshot path pin now that altaidevorg/isanagent#101 landed on main (ea90fa0), and restore the branch-tracked git dependency used by isanagent:sync / CI. Co-authored-by: Cursor <cursoragent@cursor.com>
efecnc
added a commit
to altaidevorg/altai-app
that referenced
this pull request
Jul 30, 2026
Drop the temporary tools/isanagent-oneshot path pin now that altaidevorg/isanagent#101 landed on main (ea90fa0), and restore the branch-tracked git dependency used by isanagent:sync / CI. Co-authored-by: Cursor <cursoragent@cursor.com>
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Re-opens the #99 host API work for Monatis review/merge after #100 reverted the premature merge.
run_oneshot,oneshot_prompt,observe_tx,scripted_responsesHostThemeMode(auto/dark/light/no-color) wired into TUI/line mode--file/@pathattachments (text/image/PDF) with fuzzy basename resolvecompact_auto/compact_threshold_tokens/compact_tail_turnshost overrides/context+/compact/dev/ttyapproval resume; logger re-init fix for multi-host testsPlease only Monatis merge this PR.
Test plan
cargo test --lib host::cargo test --lib channels::terminal_ui::attachmentscargo test --lib channels::terminal_ui::approvalcargo check --all-targets --lockedMade with Cursor