Skip to content

Commit 79599f3

Browse files
committed
chore: update opencode plugin dependencies and fix tauri sidecar path
1 parent 83bcb9e commit 79599f3

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

.opencode/bun.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.opencode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
33
"@octokit/rest": "^22.0.1",
4-
"@opencode-ai/plugin": "0.0.0-dev-202512160327"
4+
"@opencode-ai/plugin": "1.0.161"
55
}
66
}

packages/tauri/src-tauri/src/lib.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,21 @@ fn spawn_sidecar(app: &AppHandle, port: u16) -> CommandChild {
6767

6868
#[cfg(not(target_os = "windows"))]
6969
let (mut rx, child) = {
70-
let sidecar = app.shell().sidecar("opencode-cli").unwrap();
71-
let sidecar_path = sidecar.get_program().to_string_lossy();
70+
let sidecar_path = tauri::utils::platform::current_exe()
71+
.expect("Failed to get current exe")
72+
.parent()
73+
.expect("Failed to get parent dir")
74+
.join("opencode-cli");
7275
let shell = get_user_shell();
7376
app.shell()
7477
.command(&shell)
7578
.env("OPENCODE_EXPERIMENTAL_ICON_DISCOVERY", "true")
7679
.env("OPENCODE_CLIENT", "desktop")
77-
.args(["-l", "-c", &format!("{} serve --port={}", sidecar_path, port)])
80+
.args([
81+
"-l",
82+
"-c",
83+
&format!("{} serve --port={}", sidecar_path.display(), port),
84+
])
7885
.spawn()
7986
.expect("Failed to spawn opencode")
8087
};

0 commit comments

Comments
 (0)