Skip to content

fix(tasks): honor saved review provider in CLI - #10

Merged
karlorz merged 8 commits into
fork-mainfrom
feat/tasks-review-provider-chip
Oct 1, 2026
Merged

karlorz merged 8 commits into
fork-mainfrom
feat/tasks-review-provider-chip

Conversation

@karlorz

@karlorz karlorz commented Oct 1, 2026

Copy link
Copy Markdown
Owner

ELI5

The Tasks review script now follows the provider selected in Orca's desktop Tasks chip. If the chip is set to GitLab or another provider, the GitHub-only command stops with a clear message before querying GitHub.

What Changed

Before, scripts/tasks-review list could reuse the saved GitHub Items view while the desktop Tasks chip selected another provider. It now reads settings.defaultTaskSource as the provider source of truth and requires GitHub before listing GitHub Items.

The focused tests also cover both pull-request and issue dry-run payloads. They verify Grok startup, no parent workspace, correct linkage, the read-only review prompt, and that dry-run never calls worktree.create.

Why

The script is intended to mirror the desktop's saved Tasks view on every invocation. Enforcing the provider chip keeps the CLI and desktop aligned and avoids silently returning results from a provider the user is not viewing.

Linked Issue

N/A — fork-owned work item: projects/orca/work/2026-09-26-tasks-review-interface/spec.md.

Visual Proof

N/A — this is a CLI behavior and test-coverage change with no visual UI change.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Commands run on macOS:

  • pnpm exec vitest run src/cli/tasks-review.test.ts — 9 tests passed
  • pnpm tc:cli
  • node config/scripts/check-changed-code-quality.mjs HEAD^
  • pnpm build:cli
  • scripts/tasks-review --help

The live scripts/tasks-review start command was not run.

AI Disclosure

Grok assisted with implementation and verification.

Review

Please verify that the GitHub-only command should fail when defaultTaskSource selects another provider and that the dry-run payload assertions cover both PR and issue linkage.

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

The change uses the existing saved settings and runtime RPC paths. It introduces no platform-specific path handling, no remote wire change, and no production or deployment changes.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Focused tests, CLI typecheck, changed-code quality, and CLI build passed locally. CI will cover the full repository matrix.

@karlorz

karlorz commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

CI note: the static analysis failure is outside this PR's scope.

This PR contains only:

  • src/cli/tasks-review-view.ts
  • src/cli/tasks-review.test.ts

The six reported broad-object diagnostics are in pre-existing src/main/runtime/relay/own-mobile-relay-* files on the fork-main base. This PR will stay focused on the Tasks review provider-chip behavior and will not include an unrelated relay fix.

@karlorz
karlorz merged commit 4cc3d92 into fork-main Oct 1, 2026
47 checks passed
@karlorz
karlorz deleted the feat/tasks-review-provider-chip branch October 1, 2026 09:54
karlorz pushed a commit that referenced this pull request Oct 19, 2026
…-page readers off the deprecated owner resolver (stablyai#30478)

Thirteen read-routing callers (#4, #5, #10-#20 of the round-3 caller list) read the owner through
runtimeEnvironmentIdWithLegacyFallbackUnlessTwin. A workspace two hosts publish is no longer
searched on either host. The focus-read ratchet now counts the legacy-fallback adapter, which
reads the focused runtime inside an object literal its discovery skipped; the five F1 entries
that blind spot pruned come back. Deprecated importers 53 -> 40.
karlorz pushed a commit that referenced this pull request Oct 20, 2026
…win projections stay on their host (review-5 #2 #9 #11) (stablyai#30890)

* fix(renderer): host writes route only through the strict owner, and twin projections stay on their host (review-5 #2 #9 #11)

A selected ssh: host that two paired servers proxy now resolves ambiguous at the one
selected-host resolver, so no caller can fall back to this app's own SSH connection.
File Explorer and SSH mutation expectations derive the full {endpoint, place} pair from
resolveOwner, so a server folder's nested SSH target stays the write's host. A local
lineage write projects onto its own host's rows only. The id-only store-write ratchet
now also covers persistence repo-row lookups by id alone (review-5 #10's shape).

* fix(ratchet): the id-only lookup scan also sees optional chaining and destructured ids

* fix(renderer): an unstamped folder keeps reading its host from its repos; editor focus fallback left for a follow-up

* docs(renderer): the File Explorer owner comment names its folder fallback
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