Skip to content

Replace TUI publication commands with agent tools - #247

Closed
nishu-builder wants to merge 1 commit into
codex/publish-github-tool-20260917-911f8baefrom
codex/agent-publish-20260917-911f8bae
Closed

nishu-builder wants to merge 1 commit into
codex/publish-github-tool-20260917-911f8baefrom
codex/agent-publish-20260917-911f8bae

Conversation

@nishu-builder

@nishu-builder nishu-builder commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Remove /pr, /publish-branch and their preview UI in favor of the agent publication and GitHub tools. Remove the orphaned host publication/PR engine, preview plumbing and obsolete publisher tests.

Keep local /import and existing publication records readable. A regression test constructs a legacy publication record and reads its summary and diagnostic after removing the publisher. Update the TUI documentation and specification.

Validation on EC2: Nix build passed. The salted suite passed 46/47 checks in 395s; its Clippy findings were fixed, and Clippy passed on all affected crates with --all-targets -- -D warnings. Formatting passed after those lint-only fixes. HTTPS import/push, shallow-locator/offline-cache, and focused unit checks also passed. The functional suite was not repeated for the lint-only changes.

@nishu-builder
nishu-builder force-pushed the codex/agent-publish-20260917-911f8bae branch from 3f430bb to 1373cc9 Compare September 17, 2026 23:42
@nishu-builder nishu-builder changed the title Let agents publish branches and manage GitHub PR stacks Replace TUI publication commands with agent tools Sep 17, 2026
@nishu-builder
nishu-builder changed the base branch from main to codex/publish-github-tool-20260917-911f8bae September 17, 2026 23:42
@nishu-builder
nishu-builder added this pull request to stack #255 September 17, 2026 23:43
@nishu-builder
nishu-builder force-pushed the codex/agent-publish-20260917-911f8bae branch from 1373cc9 to ea52238 Compare September 17, 2026 23:48
@nishu-builder
nishu-builder force-pushed the codex/agent-publish-20260917-911f8bae branch from ea52238 to 4497841 Compare September 17, 2026 23:54

@nishu-builder nishu-builder left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Layer 8/8. The TUI removal is clean: publication.rs under bin/tui is gone, the Publish/PublishBranch actions, publish_plan, publishing state, the three UiMessage variants and the footer/help text all go together, and the docs (README, SPEC, agent-harness, chat) are updated in the same commit.

One thing the PR title promises and the diff does not do: the host-side publication engine in caos-cli is not removed, only orphaned. At the top of this stack the following are reachable from nothing but their own tests:

  • rust/crates/caos-cli/src/publication.rs (the lib one, publish_target with find_or_open_source_tree_pr_in, which shells out to the host's gh)
  • source_trees::prepare_publication, resolve_publication_target, publish_target, publish_branch_target, import_publication_base
  • publish_source_tree_branch, publish_prepared_source_tree_branch, push_publication, append_publication_pending/terminal, same_publication_intent, origin_repository in lib.rs
  • host_git::find_or_open_source_tree_pr_in, validate_pr_source_tree, pr_base_is_ancestor

That is several hundred lines of a second publication implementation (implementation: "caos-cli/preserve" alongside the new "caos/server-push") with its own lease, recovery and PR-creation logic, plus the git-locator dependency #250 added to caos-cli only to share two helpers with it. None of it warns because it is pub. If the intent is to keep a host fallback, the design doc should say so and something should call it; otherwise this PR is the natural place to delete it, since it is the one that removes the only caller. The publication-record reading paths (publications(), publication_diagnostic) are separate and should stay, as agent-publish.md says existing records remain readable.

Also: this PR's base is #254, and the stack description on #248 lists it last, but its number is the lowest. Just noting for whoever merges bottom-up that the order is by base branch, not by PR number.


Generated by Claude Code

@nishu-builder
nishu-builder force-pushed the codex/agent-publish-20260917-911f8bae branch 2 times, most recently from 943545d to e726bce Compare September 18, 2026 00:48
@nishu-builder
nishu-builder force-pushed the codex/agent-publish-20260917-911f8bae branch 2 times, most recently from 5841f63 to 8428389 Compare September 18, 2026 07:50
@nishu-builder
nishu-builder removed this pull request from stack #255 September 18, 2026 07:50
@nishu-builder
nishu-builder added this pull request to stack #257 September 18, 2026 07:51
@nishu-builder
nishu-builder force-pushed the codex/agent-publish-20260917-911f8bae branch from 8428389 to 2e62b33 Compare September 18, 2026 10:52
@nishu-builder
nishu-builder removed this pull request from stack #257 September 18, 2026 10:52
@nishu-builder
nishu-builder added this pull request to stack #257 September 18, 2026 10:52
@nishu-builder
nishu-builder removed this pull request from stack #257 September 18, 2026 10:53
@nishu-builder
nishu-builder added this pull request to stack #261 September 18, 2026 10:53
@nishu-builder
nishu-builder force-pushed the codex/agent-publish-20260917-911f8bae branch from 2e62b33 to f5299ab Compare September 18, 2026 19:52
@nishu-builder
nishu-builder force-pushed the codex/agent-publish-20260917-911f8bae branch from f5299ab to 357a9f6 Compare September 18, 2026 19:53
@nishu-builder
nishu-builder force-pushed the codex/agent-publish-20260917-911f8bae branch from 357a9f6 to 7b75978 Compare September 19, 2026 01:44

Copy link
Copy Markdown
Contributor Author

Closing with the rest of stack #261. Removing /pr and /publish-branch is being redone as the top of a new stack: #300 (design), then the github tool, then the removal.


Generated by Claude Code

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