refactor(cli): centralize server resolution

This commit is contained in:
Dax Raad
2026-07-08 22:10:30 -04:00
parent be7a684791
commit cccd013801
13 changed files with 152 additions and 292 deletions
+1
View File
@@ -112,6 +112,7 @@ export const RunCommand = effectCmd({
file: args.file ?? [],
title: args.title,
server: args.server ?? args.attach,
// @ts-expect-error V1 does not consume the V2-only resolved server input.
password: args.password ?? process.env.OPENCODE_PASSWORD ?? process.env.OPENCODE_SERVER_PASSWORD,
username: args.username ?? process.env.OPENCODE_SERVER_USERNAME,
directory: args.dir,