Skip to content

fix(opencode): restore cwd-agnostic opencodealt entry - #6

Merged
Alter-Igor merged 1 commit into
devfrom
opencodealt-entry
Aug 1, 2026
Merged

fix(opencode): restore cwd-agnostic opencodealt entry#6
Alter-Igor merged 1 commit into
devfrom
opencodealt-entry

Conversation

@Alter-Igor

@Alter-Igor Alter-Igor commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Issue for this PR

Closes #7

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

opencodealt (machine-local Nodist launcher for this Alterspective fork) failed immediately with Module not found for packages/opencode/src/index.alterspective.ts. That path was hard-coded in opencodealt.bat but the entry file was never committed.

This PR adds the cwd-agnostic entry: it registers @opentui/solid/preload (required because bun only applies bunfig.toml preloads from the process cwd), then dynamically imports ./index.ts. Also documents the launcher contract in AGENTS.md fork-local notes.

How did you verify your code works?

  • From %TEMP%: bun run --conditions=browser <path>/packages/opencode/src/index.alterspective.ts --versionlocal (exit 0)
  • Same entry --help → full CLI help
  • After entry present on primary clone path: opencodealt --version / --help from arbitrary cwd succeeds (was Module not found)
  • Interactive TUI open not exercised in this non-interactive session

Screenshots / recordings

N/A — launcher/CLI entry only, no UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

No user-doc impact: developer/fork launcher only; no product surface change.

Machine-local opencodealt.bat points at index.alterspective.ts, which was
never in the repo, so the launcher failed with Module not found. Add the
entry so @opentui/solid/preload registers before loading index.ts when
cwd is not the package directory, and document the launcher in AGENTS.md.

No user-doc impact: developer/fork launcher only; no product surface change.
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Changes

Alterspective launcher

Layer / File(s) Summary
Launcher entrypoint and maintenance documentation
packages/opencode/src/index.alterspective.ts, AGENTS.md
The new launcher registers @opentui/solid/preload before dynamically importing ./index.ts. The documentation describes the absolute-path Bun launcher and its maintenance requirement.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: kitlangton

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the fix that restores the cwd-agnostic opencodealt entry.
Description check ✅ Passed The description covers the issue, change, verification steps, limitations, and checklist requirements.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch opencodealt-entry

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@Alter-Igor

Copy link
Copy Markdown
Owner Author

PR-loop disposition (cycle 1)

Reviewers (current head 6ac773f68ad0bd44ec9eb3a072a84c46851a2f2a)

Compliance

CI gap (external)

Workflows test, typecheck, nix-eval, and remaining pr-management jobs have remained queued with no runner assignment for ~25+ minutes (public fork Actions queue). Not a code failure — no job has started.
Local validation already observed: entry --version/--help and opencodealt launcher smoke from arbitrary cwd.

Merge decision

Branch dev is unprotected; change is a 5-line cwd-agnostic launcher entry + AGENTS note. Merging with documented CI-queue gap rather than blocking indefinitely. Will not claim unit/typecheck CI green.

@Alter-Igor
Alter-Igor merged commit 3f66835 into dev Aug 1, 2026
8 of 15 checks passed
@Alter-Igor
Alter-Igor deleted the opencodealt-entry branch August 1, 2026 08:37
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.

fix: opencodealt fails Module not found index.alterspective.ts

1 participant