Skip to content

feat: configurable transaction search index percentage#513

Merged
tejaskash merged 2 commits intomainfrom
feat/transaction-search-index-percentage
Mar 9, 2026
Merged

feat: configurable transaction search index percentage#513
tejaskash merged 2 commits intomainfrom
feat/transaction-search-index-percentage

Conversation

@jesseturner21
Copy link
Contributor

@jesseturner21 jesseturner21 commented Mar 8, 2026

Description

Add transactionSearchIndexPercentage option to the global CLI config (~/.agentcore/config.json) so users can control the X-Ray indexing sampling percentage (0–100, defaults to 100%). Also extracts the repeated AWS error handling pattern (4 occurrences of inline code/message extraction) into a shared isAccessDeniedError helper in errors.ts, using the existing getErrorMessage utility. This addresses PR review feedback from #506.

Example config:

{ "transactionSearchIndexPercentage": 50 }

Related Issue

Closes #506

Documentation PR

N/A

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe):

Testing

How have you tested the change?

  • I ran npm run test:unit and npm run test:integ
  • I ran npm run typecheck
  • I ran npm run lint
  • If I modified src/assets/, I ran npm run test:update-snapshots and committed the updated snapshots

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.

🤖 Generated with Claude Code

jesseturner21 and others added 2 commits March 8, 2026 18:39
Allow users to configure the Transaction Search indexing percentage via
~/.agentcore/config.json instead of always using 100%. Defaults to 100%
when not specified. Accepts values 0-100.

Example config: { "transactionSearchIndexPercentage": 50 }

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace 4 repeated inline error code/message extractions with the
existing getErrorMessage helper and a new isAccessDeniedError helper
in errors.ts, addressing PR review feedback.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jesseturner21 jesseturner21 requested a review from a team March 8, 2026 22:42
@github-actions github-actions bot added the size/s PR size: S label Mar 8, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 42.67% 3717 / 8710
🔵 Statements 42.28% 3921 / 9273
🔵 Functions 44.5% 737 / 1656
🔵 Branches 44.51% 2417 / 5430
Generated in workflow #900 for commit afec2d6 by the Vitest Coverage Report Action

Copy link
Contributor

@tejaskash tejaskash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@tejaskash tejaskash merged commit c5edfeb into main Mar 9, 2026
20 checks passed
@tejaskash tejaskash deleted the feat/transaction-search-index-percentage branch March 9, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants