Skip to content

Revert "feat(host): oneshot, theme, approvals, attachments, compaction" - #100

Merged
efecnc merged 1 commit into
mainfrom
revert-99-feat/altai-host-oneshot-theme-approvals
Jul 30, 2026
Merged

Revert "feat(host): oneshot, theme, approvals, attachments, compaction"#100
efecnc merged 1 commit into
mainfrom
revert-99-feat/altai-host-oneshot-theme-approvals

Conversation

@efecnc

@efecnc efecnc commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Reverts #99

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR reverts PR #99, removing oneshot, theme, approvals, attachments, and compaction features. The revert is generally clean and complete, with one critical issue identified:

Critical Issue:

  • The Plan permission mode mapping was changed from ("ask", "deny") to ("deny", "deny") in this revert, but the diff shows the original code in PR #99 changed it from ("deny", "deny") to ("ask", "deny"). This revert restores the original ("deny", "deny") behavior, which appears correct for a revert.

Verified:

  • Struct field removals are consistent across the codebase
  • TerminalChannelConfig correctly reflects the reverted state
  • No missing imports or compilation issues
  • Explicit field initialization correctly replaces ..Default::default()

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.

Comment thread src/host.rs
// Match desktop: plan keeps shell at ask (read-only inspection with
// approval for destructive commands) while denying file edits.
HostPermissionMode::Plan => ("ask", "deny"),
HostPermissionMode::Plan => ("deny", "deny"),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Logic Error: This line changes Plan mode from ("ask", "deny") to ("deny", "deny"), which is not a pure revert. The reverted PR #99 changed this from ("deny", "deny") to ("ask", "deny"), but the pre-PR-99 code had ("deny", "deny"). This revert should restore the exact pre-PR-99 behavior unless there's a documented reason for the change.

@efecnc
efecnc merged commit 3095014 into main Jul 30, 2026
2 checks passed
@efecnc
efecnc deleted the revert-99-feat/altai-host-oneshot-theme-approvals branch July 30, 2026 07:09
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