Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: github/copilot-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: Anvith433/copilot-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 4 files changed
  • 3 contributors

Commits on Aug 22, 2026

  1. feat(nodejs): add Session.searchMessages() to query session history

    Add an async searchMessages(query, options?) method to CopilotSession that
    fetches conversation history via getEvents() and filters it in memory.
    
    - query may be a string (case-insensitive substring by default, or exact
      case via { caseSensitive: true }) or a RegExp (case sensitivity governed
      by its own i flag; the caller's RegExp is never mutated and its g/y
      lastIndex statefulness is neutralized).
    - options.eventType restricts results to a single event type.
    - Matching runs only over the string leaf values nested in event.data, so
      searches hit message/tool/error content rather than object keys, ids, or
      timestamps. Results preserve history order.
    
    Also export SearchMessagesOptions on the public API surface and add 20 unit
    tests covering string/RegExp matching, case sensitivity, eventType
    filtering, nested-data matching, order preservation, and edge cases.
    
    Implements the feature requested in #2376.
    
    Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
    Anvith433 and claude committed Aug 22, 2026
    Configuration menu
    Copy the full SHA
    595c3fc View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1 from Anvith433/feat/nodejs-search-messages

    feat(nodejs): add Session.searchMessages() to query session history
    Anvith433 authored Aug 22, 2026
    Configuration menu
    Copy the full SHA
    09f10ee View commit details
    Browse the repository at this point in the history
Loading