feat(code): surface /auth in /trace not-configured hint (#4206)

`/trace` now points to `/auth` when LangSmith tracing is not yet
configured.

---

Following #4193, LangSmith tracing can be configured directly from
`/auth`. The `/trace` command's "not configured" helper text still only
mentioned the `LANGSMITH_API_KEY` / `LANGSMITH_TRACING` env vars, so it
now points users to `/auth` first while keeping the env-var fallback.

Made by [Open
SWE](https://openswe.vercel.app/agents/dc58d0c4-6dfe-42ae-4af1-28ff95148006)

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
This commit is contained in:
Mason Daugherty
2026-06-24 15:33:26 -04:00
committed by GitHub
parent 28cd19db08
commit 392e410e48
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -6956,7 +6956,8 @@ class DeepAgentsApp(App):
await self._mount_message(
AppMessage(
"LangSmith tracing is not configured. "
"Set LANGSMITH_API_KEY and LANGSMITH_TRACING=true to enable.",
"Run `/auth` and select LangSmith to enable tracing, or set "
"LANGSMITH_API_KEY and LANGSMITH_TRACING=true.",
),
)
return
+3 -1
View File
@@ -3622,7 +3622,9 @@ class TestTraceCommand:
await pilot.pause()
app_msgs = app.query(AppMessage)
assert any("LANGSMITH_API_KEY" in str(w._content) for w in app_msgs)
rendered = "\n".join(str(w._content) for w in app_msgs)
assert "LANGSMITH_API_KEY" in rendered
assert "/auth" in rendered
async def test_trace_shows_network_error_when_url_fetch_times_out(self) -> None:
"""Should distinguish a network/timeout failure from a config gap.