Skip to content

Refactor command workflows and add inline variants#109

Merged
dbpolito merged 4 commits into
mainfrom
refactor/simplify-command-workflows
Jul 17, 2026
Merged

Refactor command workflows and add inline variants#109
dbpolito merged 4 commits into
mainfrom
refactor/simplify-command-workflows

Conversation

@dbpolito

@dbpolito dbpolito commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Ticket

SKIPPED

Description

Replace navigator-based dispatch with reusable in-session workflow phases, add a complete inline command family for finishing current-session work, and improve PR-fix state handling.

Checklist

Command execution

  • Run multi-step command phases through reusable worker components
  • Add /branch/inline, /commit/inline, /commit-and-push/inline, /pr/create/inline, and /ship/inline with subtask: false
  • Skip redundant uncommitted loads while retaining authoritative PR comparison loading
  • Remove obsolete navigator dispatch wiring

PR workflows

  • Rename /loop/pr/fix to /pr/fix/loop
  • Load review activity incrementally between loop passes
  • Update PR branches from base before applying fixes

Configuration and documentation

  • Keep bundled configs, schema, generated artifacts, tests, docs, and command showcase synchronized

Validation

  • Verify that OpenCode artifacts compile successfully
  • Confirm that core and adapter type checks pass
  • Confirm that core and adapter tests pass
  • Restore focused coverage for the live getCommandExecution hook path

- replace navigator dispatch with reusable workflow components
- add incremental PR review loading and streamlined PR commands
- align bundled config, generated artifacts, tests, and documentation
@dbpolito dbpolito self-assigned this Jul 16, 2026

@kompassdev kompassdev 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.

★★★★☆

Solid refactor that consistently removes navigator-based dispatch, adds the inline commit/ship variants, renames loop/pr/fix to pr/fix/loop, and wires incremental review loading. Bundled configs, schema, generated OpenCode artifacts, and tests are kept in sync, and the new pr_load_review exclusive-checkpoint logic is sound (dedup-by-id hides boundary duplication).

One coverage gap to fix (see inline comment): deleting task-hook.test.ts also dropped the still-live getCommandExecution tests.

Comment thread packages/opencode/test/task-hook.test.ts
- add inline branch, commit-and-push, and PR creation commands
- synchronize command defaults, schema, and generated OpenCode artifacts
- cover current-session behavior in core and adapter tests
- document and showcase the expanded inline workflow surface
- consolidate change analysis and ticket planning into reusable components
- infer inline rendering and reuse shared push behavior
- defer oversized changes_load diffs while preserving file manifests
- sync configs, docs, tests, and generated OpenCode artifacts
- mark oversized diff results as incomplete and required\n- clarify that every deferred file diff must be inspected\n- cover deferred result metadata and guidance in e2e tests
@dbpolito
dbpolito merged commit 8a1e32a into main Jul 17, 2026
1 check passed
@dbpolito
dbpolito deleted the refactor/simplify-command-workflows branch July 17, 2026 16:42
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