Skip to content

Commit 2a42574

Browse files
committed
πŸ”‡ fix: use AUGMENT_DEBUG only for debug logging
Generic DEBUG env var conflicts with OpenCode/oh-my-opencode which sets DEBUG for its own logging, causing [augment-server] messages like 'Creating client for opus4.6' to leak into the TUI. Only check AUGMENT_DEBUG to avoid false positives.
1 parent db1a2bc commit 2a42574

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ OpenCode β†’ Plugin (config + auth hooks) β†’ Embedded Server β†’ Auggie SDK β†’
9696
| "Token is required" | Run `auggie tokens print` and paste the output |
9797
| Model not found | Use hyphenated IDs: `claude-opus-4-6`, not `claude-opus-4.6` |
9898
| Switch auth method | Run `opencode auth login` again and pick the other option |
99-
| Verbose logging | Set `DEBUG=true` or `AUGMENT_DEBUG=true` before running OpenCode |
99+
| Verbose logging | Set `AUGMENT_DEBUG=true` before running OpenCode |
100100

101101
## Advanced: Standalone Server
102102

β€Žplugin/src/plugin.tsβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ const PROVIDER_ID = "augment";
1313

1414
const LOG_PREFIX = "[augment]";
1515
const isDebug = () =>
16-
process.env.DEBUG === "true" ||
17-
process.env.DEBUG === "1" ||
1816
process.env.AUGMENT_DEBUG === "true" ||
1917
process.env.AUGMENT_DEBUG === "1";
2018
const debug = (...args: unknown[]) => {

β€Žplugin/src/server.tsβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ let overrideCredentials: Session | null = null;
9595

9696
const LOG_PREFIX = "[augment-server]";
9797
const isDebug = () =>
98-
process.env.DEBUG === "true" ||
99-
process.env.DEBUG === "1" ||
10098
process.env.AUGMENT_DEBUG === "true" ||
10199
process.env.AUGMENT_DEBUG === "1";
102100
const debug = (...args: unknown[]) => {

0 commit comments

Comments
Β (0)