Skip to content

Commit d0ee265

Browse files
bloveclaudegithub-actions[bot]
authored
debug(langgraph): add console.debug to LangGraphThreadsAdapter.refresh() (#486)
* debug(langgraph): add console.debug to LangGraphThreadsAdapter.refresh() PR #488 already replaced the silent catch with console.error; that half of the original debug PR is done. This adds the complementary console.debug calls on invoke + resolve so prod inspection can distinguish "never called" from "called but resolved empty" from "called and threw." Targets the demo.threadplane.ai cold-load bug where the sidenav stays empty with no visible signal. After this lands, redeploy + reload the demo + check the console: presence/absence of '[...] invoked' tells us whether the effect even fires. Tighten the log volume if it becomes noisy. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(docs): regenerate api docs --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 4684744 commit d0ee265

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

apps/website/content/docs/agent/api/api-docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@
331331
{
332332
"name": "refresh",
333333
"signature": "refresh()",
334-
"description": "Fetch the latest thread list from the server. Failures are\n logged via `console.error` (not swallowed silently — silent\n catches have masked prod issues in the past).",
334+
"description": "Fetch the latest thread list from the server. Failures are\n logged via `console.error` (not swallowed silently — silent\n catches have masked prod issues in the past).\n\n Invocation and resolution are logged at `console.debug` so prod\n inspection can distinguish \"never called\" from \"called but\n resolved empty\" from \"called and threw.\" This was prompted by a\n demo.threadplane.ai cold-load bug where the sidenav stayed empty\n with no visible signal. Tighten the log volume if it becomes\n noisy.",
335335
"params": []
336336
},
337337
{

libs/langgraph/src/lib/threads/threads-adapter.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,19 @@ export class LangGraphThreadsAdapter {
7878

7979
/** Fetch the latest thread list from the server. Failures are
8080
* logged via `console.error` (not swallowed silently — silent
81-
* catches have masked prod issues in the past). */
81+
* catches have masked prod issues in the past).
82+
*
83+
* Invocation and resolution are logged at `console.debug` so prod
84+
* inspection can distinguish "never called" from "called but
85+
* resolved empty" from "called and threw." This was prompted by a
86+
* demo.threadplane.ai cold-load bug where the sidenav stayed empty
87+
* with no visible signal. Tighten the log volume if it becomes
88+
* noisy. */
8289
async refresh(): Promise<void> {
90+
console.debug('[LangGraphThreadsAdapter.refresh] invoked');
8391
try {
8492
const list = await this.client.threads.search({ limit: 50 });
93+
console.debug('[LangGraphThreadsAdapter.refresh] resolved', list.length);
8594
const mapped = list.map((t) => this.toThread(t));
8695
this._threads.set(
8796
mapped

0 commit comments

Comments
 (0)