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: hyperbrowserai/HyperAgent
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: hyperbrowserai/HyperAgent
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: shri/cache-actions
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 16 commits
  • 36 files changed
  • 2 contributors

Commits on Dec 4, 2025

  1. Configuration menu
    Copy the full SHA
    8a4e023 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ad740f4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e819838 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    62ddfae View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    340cf05 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5b4eeff View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    01e09ef View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    321f15e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fe950a7 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e5ee018 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5b69e4b View commit details
    Browse the repository at this point in the history
  12. Delete currentState.md

    shrisukhani committed Dec 4, 2025
    Configuration menu
    Copy the full SHA
    be4c416 View commit details
    Browse the repository at this point in the history
  13. Improve deterministic cache with structural hashing, semantic matchin…

    …g, and action caching
    
    - Add structural DOM hashing that ignores text content changes (timestamps, counters)
      while detecting structural changes (new elements, removed elements, role changes)
    - Add semantic instruction matching via word normalization so "Get product prices"
      and "Get the prices of products" produce cache hits
    - Add optional cacheStrategy param for actions: 'none' (default), 'result-only', 'full'
    - Update prepareCache to use structural hash and semantic matching by default
    - Add comprehensive tests for all three features
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-Authored-By: Claude <noreply@anthropic.com>
    shrisukhani and claude committed Dec 4, 2025
    Configuration menu
    Copy the full SHA
    9666185 View commit details
    Browse the repository at this point in the history
  14. Respect result-only action cache semantics and fix double onComplete

    - Add hitStrategy field to CachePreparation to differentiate cache modes
    - For "result-only" strategy: execute action for side effects, return cached result
    - For "full" strategy: skip execution entirely on cache hit (existing behavior)
    - For extracts: always use "full" semantics (idempotent operations)
    - Strip onComplete from params passed to runAgentTask for result-only hits
      to prevent double invocation (once by runAgentTask, once manually)
    - Add comprehensive tests for cache strategy behavior
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-Authored-By: Claude <noreply@anthropic.com>
    shrisukhani and claude committed Dec 4, 2025
    Configuration menu
    Copy the full SHA
    f1722fc View commit details
    Browse the repository at this point in the history
  15. Fix result-only cache masking task failures

    When cacheStrategy is "result-only", only use the cached result if the
    fresh execution succeeds. If execution fails, surface the actual failure
    instead of masking it with the cached success.
    
    Changes:
    - Add executionSucceeded check before using cached result
    - Only call onComplete when execution succeeds
    - Only mark as cache hit when cached result is actually used
    - Add tests verifying failures are surfaced correctly
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-Authored-By: Claude <noreply@anthropic.com>
    shrisukhani and claude committed Dec 4, 2025
    Configuration menu
    Copy the full SHA
    64e0fe4 View commit details
    Browse the repository at this point in the history
  16. Treat schema-less extract tasks as extracts, not actions

    Added opType field to TaskParams to explicitly specify operation type.
    This ensures page.extract() calls without a schema still get extract
    behavior (selector scoping, caching, proper metrics).
    
    Changes:
    - Add opType?: "extract" | "act" to TaskParams interface
    - Update executeTaskAsync and executeTask to use explicit opType if provided
    - Update page.extract to always pass opType: "extract"
    
    Previously, page.extract("summarize", undefined, { selector: "#main" })
    would be classified as "act" because outputSchema was undefined, causing
    the selector to be ignored and action caching rules to apply.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-Authored-By: Claude <noreply@anthropic.com>
    shrisukhani and claude committed Dec 4, 2025
    Configuration menu
    Copy the full SHA
    1c782bc View commit details
    Browse the repository at this point in the history
Loading