microsoft / microsoft/Agent365-nodejs

Claude SDK: Monitor for chat history API availability

Open
#164 0 comments 0 reactions 1 assignee View on GitHub

@gwharris7 is already working on this.

Since Jun 11, 2026.

backlog blocked/external-sdk
Dominant language
TypeScript
Stars
24
Forks
12
Avg merge
2h 59m
Merged PRs (30d)
1

Description

Summary

The Claude Agent SDK (@anthropic-ai/claude-agent-sdk) does not currently expose programmatic access to conversation history, unlike OpenAI's OpenAIConversationsSession.getItems(). This blocks implementing a Claude-specific sendChatHistoryAsync method equivalent to PR #157.

Current State (January 2026)

  • Workspace SDK version: ^0.1.30
  • unstable_v2 APIs added in: v0.1.54
  • History retrieval API: Not available

The SDK's experimental unstable_v2_* session APIs provide:

  • session.send(message) - Send a message
  • session.stream() - Stream responses
  • session.close() - Close session

Missing: session.getHistory() or equivalent to retrieve past messages.

Workaround

Developers can use the generic sendChatHistory from @microsoft/agents-a365-tooling by manually constructing ChatHistoryMessage[].

See: packages/agents-a365-tooling-extensions-claude/docs/design.md

Revisit Criteria

Re-evaluate when:

  1. Claude SDK adds session.getHistory() or session.getMessages()
  2. unstable_v2 APIs stabilize (lose unstable_ prefix)
  3. SDK version is upgraded in this workspace
  4. Anthropic documentation shows new history capabilities

References

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.