fix(tmux): use stable fallback server URL
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -72,8 +72,7 @@ export class TmuxSessionManager {
|
|||||||
this.client = ctx.client
|
this.client = ctx.client
|
||||||
this.tmuxConfig = tmuxConfig
|
this.tmuxConfig = tmuxConfig
|
||||||
this.deps = deps
|
this.deps = deps
|
||||||
const defaultPort = process.env.OPENCODE_PORT ?? "4096"
|
const fallbackUrl = "http://localhost:4096"
|
||||||
const fallbackUrl = `http://localhost:${defaultPort}`
|
|
||||||
const rawServerUrl = ctx.serverUrl?.toString()
|
const rawServerUrl = ctx.serverUrl?.toString()
|
||||||
try {
|
try {
|
||||||
if (rawServerUrl) {
|
if (rawServerUrl) {
|
||||||
|
|||||||
Reference in New Issue
Block a user