Skip to content

[Repo Assist] fix: consolidate critical bug fixes (pre-v0.0.10)#106

Draft
github-actions[bot] wants to merge 1 commit intomasterfrom
repo-assist/fix-critical-bugs-2026-03-25-288e6409a6b1e96b
Draft

[Repo Assist] fix: consolidate critical bug fixes (pre-v0.0.10)#106
github-actions[bot] wants to merge 1 commit intomasterfrom
repo-assist/fix-critical-bugs-2026-03-25-288e6409a6b1e96b

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

🤖 This is an automated draft PR from Repo Assist, an AI assistant.

Summary

Consolidates the most critical bug fixes from the many open Repo Assist PRs into a single reviewable change. This is the same set of fixes as the blocked issue #98, but without the package.json version bump so this PR can be created and reviewed now. The version bump can be done separately before release.

Changes

Bug Fixes

Relationship to Other Open PRs

This PR supersedes (those can be closed once this merges):

Note: package.json version bump is intentionally excluded (protected file). The maintainer can bump the version to 0.0.10 and update CHANGELOG.md date before merging.

Test Status

Unit tests pass: npm run test:unit — 7/7 tests pass
Syntax check: node --check extension.js — no syntax errors
⚠️ Integration tests: VS Code integration tests require a GUI environment and cannot run in CI. The logic changes are unit-testable; the formatting provider changes follow the VS Code extension API contract.

Closes

Closes #7, #16, #19, #27, #35, #36, #38, #39

Generated by Repo Assist ·

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@346204513ecfa08b81566450d7d599556807389f

- Fix hang when phpcbf has nothing to fix (exit code 0 → reject cleanly)
- Always close stdin in format() regardless of debug mode
- Use path.join() for temp file path (fixes Windows path separators)
- Set cwd: TmpDir in cp.spawn (phpcs 2.x macOS compatibility, closes #16)
- Fix fs.exists async race in addRootPath() → use fs.existsSync
- Fix exit code 3 stdout reading (was registered after spawn, too late)
- resolve([]) instead of reject() in provideDocumentFormattingEdits (closes #19)
- Read phpcbf.onsave per-document URI in onWillSaveTextDocument (closes #27)
- Only reload settings on phpcbf.* config changes (not all VS Code changes)
- Resolve ~, ./, ${workspaceFolder}, ${workspaceRoot} in phpcbf.standard (closes #7, #38)
- Clean up temp file on spawn error

Closes #7, #16, #19, #27, #35, #36, #38, #39

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

0 participants