Skip to content

fix: migrate default conversation API usage to SDK 1.7.11 pattern#1256

Merged
carenthomas merged 2 commits intomainfrom
caren/sdk-1711-default-conversation
Mar 4, 2026
Merged

fix: migrate default conversation API usage to SDK 1.7.11 pattern#1256
carenthomas merged 2 commits intomainfrom
caren/sdk-1711-default-conversation

Conversation

@carenthomas
Copy link
Contributor

Summary

  • Update @letta-ai/letta-client to ^1.7.11
  • Migrate default-conversation calls to the new pattern:
    • use conversation_id=\"default\"
    • pass agent_id in query/body as required by endpoint
  • Apply migration across send/list/cancel/compact code paths and related routing helpers
  • Remove temporary guard/logging that treated accidental agent-* conversation IDs specially
  • Update affected tests for the new default-conversation routing semantics

Key changes

  • src/agent/message.ts: default send now includes agent_id in request body
  • src/agent/listMessagesRouting.ts: default route now returns conversationId: \"default\" + agentId
  • src/agent/listMessagesHandler.ts, src/agent/bootstrapHandler.ts: include agent_id query when route provides it
  • src/agent/check-approval.ts: default backfill uses messages.list(\"default\", { agent_id }); removed temporary agent-id guard/logging
  • src/cli/App.tsx: default cancel uses conversations.cancel(\"default\", { agent_id }); default compact includes agent_id
  • src/cli/subcommands/messages.ts, src/cli/components/ConversationSelector.tsx: default list now uses \"default\" + agent_id
  • Cleanup of temporary agent-* display/guard behavior in src/cli/components/AgentInfoBar.tsx, src/headless.ts, and src/index.ts

Test plan

  • bun run check
  • bun test src/tests/headless/list-messages-protocol.test.ts src/tests/headless/list-messages-handler.test.ts src/tests/headless/bootstrap-handler.test.ts src/tests/cli/stream-resume-fallback.test.ts src/tests/agent/getResumeData.test.ts

👾 Generated with Letta Code

carenthomas and others added 2 commits March 3, 2026 19:57
Switch default-conversation calls to conversation_id="default" + agent_id query/body,
update @letta-ai/letta-client to ^1.7.11, and remove temporary agent-id guards/logging.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
Retain conversations.retrieve debugLog statements in TUI/headless startup
flows while removing the temporary getResumeData-specific logging.

👾 Generated with [Letta Code](https://letta.com)

Co-Authored-By: Letta Code <noreply@letta.com>
@carenthomas carenthomas merged commit 4111c54 into main Mar 4, 2026
37 of 39 checks passed
@carenthomas carenthomas deleted the caren/sdk-1711-default-conversation branch March 4, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant