Skip to content

Commit 33643a5

Browse files
bloveclaude
andcommitted
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>
1 parent 324e8e1 commit 33643a5

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

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)