Skip to content

Improve OpenCode executable resolution and management#1

Merged
AshotN merged 8 commits intomasterfrom
an/refactorPath
Mar 13, 2026
Merged

Improve OpenCode executable resolution and management#1
AshotN merged 8 commits intomasterfrom
an/refactorPath

Conversation

@AshotN
Copy link
Owner

@AshotN AshotN commented Mar 13, 2026

Summary

Refactors and enhances the logic for resolving and managing OpenCode executable files. Introduces new states, improves path resolution, optimizes detection mechanisms, and decouples UI settings for improved maintainability. Includes updates to tests to reflect changes and enhancements.

Changes

  • Introduced OpenCodeExecutableResolutionState for better tracking in executable resolution workflows.
  • Refactored and simplified resolution logic, replacing executableResolutionCompleted.
  • Optimized PATH-based executable detection using streamlined file handling.
  • Migrated OpenCodeStartupActivity to a background task for better startup performance.
  • Decoupled UI from persisted settings in OpenCodeSettingsConfigurable for improved configurability.
  • Added multiple path and filename support for enhanced executable resolution across systems.
  • Improved terminal command structure for better launch consistency on Windows and other systems.
  • Cleaned up and renamed classes and interfaces for clarity (ResolvedInfo renamed to OpenCodeInfo).
  • Added OpenTerminalAction logic to include executable path checks during updates.

Testing

  • Updated existing tests to align with the new resolution and management logic.
  • Added new test cases for enhanced configuration and multi-path resolution workflows.

Notes

This pull request focuses on improving developer workflows and system consistency when resolving and managing executables in different environments.

AshotN and others added 8 commits March 12, 2026 17:52
…ution logic

fix: improve executable launch checks on Windows and non-Windows systems in ServerManager

feat: enhance OpenCode executable resolution to support additional paths and file names
…tion tracking

refactor: replace executableResolutionCompleted with OpenCodeExecutableResolutionState
fix: ensure proper Windows terminal command structure for server start and attach
perf: optimize PATH-based executable detection with simplified File usage
chore: migrate OpenCodeStartupActivity to backgroundPostStartupActivity
test: update tests to reflect new executable resolution state management
@AshotN AshotN merged commit 67b3d4c into master Mar 13, 2026
1 check passed
@AshotN AshotN deleted the an/refactorPath branch March 13, 2026 23:44
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