Support remote project tabs with local OpenCode bridge
Keeps provider credentials local while executing OpenCode shell and file tools against the selected remote workspace over SSH.
This commit is contained in:
@@ -38,7 +38,9 @@ let GitZoneOpenCodeNodeService = class GitZoneOpenCodeNodeService {
|
||||
eventAbortController;
|
||||
openCodeProcess;
|
||||
initialize() {
|
||||
void this.ensureOpenCodeStarted();
|
||||
if (this.autoStart) {
|
||||
void this.ensureOpenCodeStarted();
|
||||
}
|
||||
}
|
||||
onStop() {
|
||||
this.eventAbortController?.abort();
|
||||
@@ -119,6 +121,13 @@ let GitZoneOpenCodeNodeService = class GitZoneOpenCodeNodeService {
|
||||
stdio: ['ignore', 'ignore', 'ignore'],
|
||||
windowsHide: true,
|
||||
});
|
||||
this.openCodeProcess.once('error', (error) => {
|
||||
console.warn(`OpenCode server autostart failed: ${error.message}`);
|
||||
this.openCodeProcess = undefined;
|
||||
});
|
||||
this.openCodeProcess.once('exit', () => {
|
||||
this.openCodeProcess = undefined;
|
||||
});
|
||||
}
|
||||
restartEventStream() {
|
||||
this.eventAbortController?.abort();
|
||||
|
||||
Reference in New Issue
Block a user