Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/website/content/docs/agent/api/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@
{
"name": "refresh",
"signature": "refresh()",
"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).",
"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.",
"params": []
},
{
Expand Down
11 changes: 10 additions & 1 deletion libs/langgraph/src/lib/threads/threads-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,19 @@ export class LangGraphThreadsAdapter {

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