51 Commits

Author SHA1 Message Date
Mateusz Tymek
d56e31a25a v0.2.1 v0.2.1 2026-02-23 19:09:20 +01:00
Mateusz Tymek
92af2dd7e8 Fix version number 2026-02-23 19:09:06 +01:00
Mateusz Tymek
e20075db3f Increased OC startup timeout to 45s 2026-02-23 19:01:49 +01:00
Mateusz Tymek
159e7ad7ac Fix issues #28: InvalidCharacterError in getUrl when using non-Latin1 2026-02-23 18:54:47 +01:00
Gerkinfeltser
aaa71df9b2 ci: fix OpenCode CLI installation on Ubuntu
Remove broken caching for OpenCode binary and add explicit PATH
configuration to ensure opencode command is available on Ubuntu runners.
The cache wasn't properly restoring the binary to PATH.
2026-02-23 18:39:32 +01:00
Gerkinfeltser
a7fa8c76a4 fix: use CI env var to detect test environment
Check for CI environment variable (set by GitHub Actions and most CI
systems) instead of VITEST to skip beforeunload handler registration
during automated tests.
2026-02-23 18:39:32 +01:00
Gerkinfeltser
1ee91fcc2f fix: skip beforeunload handler in test environment
The static cleanup handler was interfering with test lifecycle,
causing the server to be killed during database migration.
Skip registration when VITEST environment variable is set.
2026-02-23 18:39:32 +01:00
Gerkinfeltser
427f0d5132 test: fix hardcoded path in PosixProcess test
Changed hardcoded path /etc/profiles/per-user/mat/bin/ls to /bin/ls
which exists on most Unix systems. The previous path was specific to
the original developer's machine and failed on CI runners.
2026-02-23 18:39:32 +01:00
Gerkinfeltser
2a824b6d19 fix: properly cleanup Windows process tree on Obsidian exit
### Fixed
- Replaced unreliable taskkill /T with PowerShell Get-CimInstance for child process detection in WindowsProcess.ts
- Fixed orphaned node.exe processes when Obsidian closes by killing child processes before parent
- Added proper cleanup when shell: true creates cmd.exe -> node.exe process tree

### Added
- Static currentProcess field to track active process for cleanup during window close
- Static cleanupHandlerRegistered flag to prevent duplicate event handlers
- beforeunload event handler for synchronous cleanup when Obsidian window closes
- killProcessSync method for immediate process termination without async delays
- registerCleanupHandler method to set up window close event listener

### Changed
- Updated start method to store process reference and register cleanup handler
- Modified stop method to use PowerShell child lookup before killing parent process
- Enhanced error handling with try/catch blocks for PowerShell and taskkill operations
2026-02-23 18:39:32 +01:00
Mateusz Tymek
2c17c9e7f6 Update readme, document 'custom command' 2026-02-15 08:47:50 +01:00
Mateusz Tymek
1f97febf2a Fix failing tests 2026-02-14 20:24:19 +01:00
Mateusz Tymek
adc34d31f1 Improved process management 2026-02-14 17:13:11 +01:00
Mateusz Tymek
f2c31a0c6f Create spec for better process management 2026-02-14 16:54:02 +01:00
Mateusz Tymek
f52ee2510d Cleanup existing specs 2026-02-14 16:19:54 +01:00
Mateusz Tymek
4f9872e7f3 Update OpenSpec tooling 2026-02-14 16:14:20 +01:00
Mateusz Tymek
9683eb0d05 Refactor plugin architecture, isolate Windows-spefic code 2026-02-14 15:53:22 +01:00
Mateusz Tymek
3d7c16fb2a Run tests under windows 2026-02-14 13:37:52 +01:00
Mateusz Tymek
d532a2a490 conditionally set detached to true on non-windows platforms so that OC process can be correctly terminated 2026-02-04 21:16:41 +01:00
Gerkinfeltser
23832461a7 Add Windows troubleshooting section for PATH issues
Documents the workaround for Windows users who encounter
"Executable not found at 'opencode'" error due to Electron
not fully inheriting PATH environment variable.
2026-02-04 21:02:46 +01:00
Gerkinfeltser
4baf27837e Fix Windows spawn compatibility for .cmd files
- Add shell: true to spawn options for .cmd file execution on Windows
- Add windowsHide: true to prevent console window from appearing
- Remove detached: true which conflicts with shell: true on Windows

Fixes spawn EINVAL error on Windows when launching opencode.cmd
2026-02-04 21:02:46 +01:00
Mateusz Tymek
5b96a239f2 Release packaging 2026-02-02 18:57:16 +01:00
Mateusz Tymek
cd5e8f9165 Update README.md, document context injection 2026-02-02 18:26:15 +01:00
Mateusz Tymek
bf10a5ecd9 Refactor OC shutdown process, make it actually work 2026-02-02 17:57:35 +01:00
Mateusz Tymek
26154cc21e Remove compiled version of the plugin 2026-02-01 20:23:38 +01:00
Mateusz Tymek
b55fbc9a06 Fix file close and select 2026-02-01 15:07:49 +01:00
Mateusz Tymek
7940371ee2 Code cleanup 2026-02-01 14:55:35 +01:00
Mateusz Tymek
39d1fe5b55 Context injection 2026-02-01 14:14:46 +01:00
Mendi Halpern
b5c5237915 Enable system CA certificate trust for corporate networks
Set NODE_USE_SYSTEM_CA=1 when spawning the opencode server process.
This allows Bun to use the macOS system keychain for TLS validation,
fixing SSL errors for users on corporate VPNs with custom CAs.
2026-01-27 23:16:30 +01:00
Mateusz Tymek
9e1ee712d2 Upgrade OpenSpec to v1.0 2026-01-26 09:53:55 +01:00
Mateusz Tymek
392511645b Update CONTRIBUTING.md 2026-01-21 19:24:49 +01:00
Mateusz Tymek
d9cee8be1a Spec review 2026-01-17 10:46:21 +01:00
Mateusz Tymek
4dd9af83c3 Add spec for deeper integration 2026-01-13 09:47:08 +01:00
Mateusz Tymek
f2a12a24c8 Cleanup 2026-01-11 14:37:01 +01:00
Mateusz Tymek
8345fff6e9 Simplify path logic 2026-01-11 14:06:34 +01:00
Mateusz Tymek
30953b3176 Configurable location for OpenCode: sidebar or main window 2026-01-10 23:11:06 +01:00
Mateusz Tymek
b8081e70fa Add roadmap.md 2026-01-08 21:04:56 +01:00
Mateusz Tymek
7553b1dffd Add CONTRIBUTING.md 2026-01-08 20:37:58 +01:00
Mateusz Tymek
4ec530d9af Archive spec (#3) 2026-01-08 11:38:54 +01:00
Mateusz Tymek
289c5832d0 Merge pull request #2 from mtymek/ci_testing
Add first tests and CI/CD pipeline
2026-01-08 11:31:05 +01:00
Mateusz Tymek
f14cdf15a0 Testing and CI/CD 2026-01-08 11:26:54 +01:00
Mateusz Tymek
ee0e9069c5 Code cleanup
Code cleanup
2026-01-08 10:26:01 +01:00
Mateusz Tymek
59b3e2709d Cleanup packaging 2026-01-05 17:46:30 +00:00
Mateusz Tymek
9ef9d26021 Cleanup 2026-01-04 22:13:36 +00:00
Mateusz Tymek
fb3692948e Bugfixes 2026-01-04 22:10:56 +00:00
Mateusz Tymek
a6926aeab3 Add MVP specs 2026-01-04 21:43:49 +00:00
Mateusz Tymek
6a24431c1b Add OpenSpec foudnation 2026-01-04 21:32:03 +00:00
Mateusz Tymek
13dcd8bb5a Use proper OpenCode icon 2026-01-03 20:35:40 +00:00
Mateusz Tymek
c12fa12419 Allow configuring starting dir 2026-01-03 20:28:35 +00:00
Mateusz Tymek
794317dbc7 Start in the vault directory 2026-01-03 16:36:42 +00:00
Mateusz Tymek
5d6fcc3c41 Add README.md 2026-01-03 16:09:38 +00:00