Skip to content

Add engine doctor + guided OpenCode install - #3

Merged
benjaminshafii merged 1 commit into
mainfrom
chore/openwork-engine-doctor-install
Jan 15, 2026
Merged

benjaminshafii merged 1 commit into
mainfrom
chore/openwork-engine-doctor-install

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

Summary

  • Adds an engine_doctor Tauri command to detect the OpenCode CLI (PATH + common install locations), report version, and verify opencode serve support.
  • Adds an engine_install Tauri command (macOS/Linux) to run the upstream installer (https://opencode.ai/install) into ~/.opencode/bin and return logs.
  • Improves Host onboarding to surface engine status, provide install options/logs, and block starting Host mode when the engine is missing or incompatible.

Notes

  • Updates OpenWork mirror/docs to point at https://github.com/anomalyco/opencode.
  • Windows currently shows a clear manual-install message (no curl | bash).

Testing

  • pnpm typecheck
  • cargo check (src-tauri)

@benjaminshafii
benjaminshafii merged commit 4de3c4d into main Jan 15, 2026
@benjaminshafii
benjaminshafii deleted the chore/openwork-engine-doctor-install branch January 18, 2026 17:31
benjaminshafii pushed a commit that referenced this pull request May 15, 2026
…install

Add engine doctor + guided OpenCode install
ZachariahAyers referenced this pull request in ayers-software-repair/openwork Aug 24, 2026
Settings -> Updates no longer surfaces a raw HTTP 404 on every packaged launch:
HOWLAND_UPDATER_METADATA short-circuits the check to a clean no-update until
the release train actually publishes latest*.yml (#3). The packaged app
identifier is com.howland.app matching release.yml's appId - the old upstream
literal split the NSIS-stamped AppUserModelID from the runtime one and broke
Windows pinning/grouping/toasts (#6); Squirrel's ShipIt defaults domain
derives from the same bundle id (#7, test fixture updated). The 512px icon
overrides are gone so the fork's 1024-ladder icns survives packaging (#8,
howland-icon.png deleted, different-ai#25); electron-builder gets the ADR 0001 copyright
and deb maintainer (#9). Help menu and status bar agree on one docs
destination (#10). The guided opencode repair now fetches the pinned FORK
release asset per platform - upstream's install script cannot serve
1.17.11-howland, so the old command always failed (#11). The six-function
dead download-manifest chain is deleted (different-ai#24); stale electron-builder comments
catch up (#12, different-ai#29).

Workflows: dispatch tags env-routed (#17), digits-only version guard (different-ai#23),
timeout-minutes on every expensive leg (different-ai#21), signtool null check (#20),
strict single-match collection in mobile (#18), keychain -T codesign +
partition-list so headless xcodebuild never hits a UI prompt (#19).

Mobile v1 (owner ruling 4): Capacitor 6 -> 7 (cap add generates targetSdk 35+,
which Play requires), real version stamping on both platforms - display
version from the tag, build number from the run because store build codes
must increase while 1.0.0 is rebuilt in place - the unsigned iOS path gets
the same bundle id as the signed one, package-lock.json is committed and both
legs use npm ci, and the gitignore/README contradiction is resolved as
generated-at-CI-by-design (#13, #14, different-ai#28).

Finding different-ai#26 does not hold: HOWLAND_DEFAULT_PORTS.brain is read via the spread
at main.mjs:965.

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

Findings

No blocking code findings in the reviewed diff.

Verified

  • Diff reviewed: git diff origin/ao/kan-22-permission-floor...HEAD.
  • Tree matches the requested layout in apps/server/src/rafiq-workspace-layout.ts:8-15; no artifacts/ path found in the layout implementation, layout docs, or layout tests.
  • Identity is created with version, id, createdAt, type, layoutVersion, and git at apps/server/src/rafiq-workspace-layout.ts:139-146, and existing/malformed identity files are not overwritten at apps/server/src/rafiq-workspace-layout.ts:130-147.
  • Git states and best-effort git init -q via execFile with timeout are implemented at apps/server/src/rafiq-workspace-layout.ts:79-98; no commit path found.
  • Idempotency memo and remote skip are implemented at apps/server/src/rafiq-workspace-layout.ts:35, 118-121, 148, and 154-156.
  • ensureWorkspaceFiles wiring is limited to the import and one awaited call after ensureDir; return shape remains unchanged at apps/server/src/workspace-init.ts:8 and 85-93.
  • Tests cover the seven requested scenarios in apps/server/src/rafiq-workspace-layout.test.ts:40-125; the unavailable test injects gitBin: "missing-rafiq-git" at apps/server/src/rafiq-workspace-layout.test.ts:95-99.
  • Fork-patch registration exists in docs/fork-patches.json:844-848 and FORK_PATCHES.md:57.
  • docs/workspace-layout.md documents the tree, identity schema, git states, idempotency, and not-done-here sections at docs/workspace-layout.md:11-77.

Local verification results

  • cd apps/server && /home/ahmed/.bun/bin/bun --conditions=development test src/rafiq-workspace-layout.test.ts src/workspace-init.test.ts src/reload-watcher.test.ts | tail -30 did not complete green locally: rafiq-workspace-layout.test.ts passed 7 tests, but workspace-init.test.ts / reload-watcher.test.ts failed to load missing modules (@openwork/paths, jsonc-parser). Per prompt, I attempted pnpm install --frozen-lockfile > /tmp/kan25-install.log 2>&1 & and checked the log once; it remained empty, and rerunning the named test command still failed with missing modules.
  • node scripts/check-fork-patches.mjs | tail -5 failed locally because base commit 214c32b8c is not reachable in this clone, so the guard refused to verify the diff.

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.

2 participants