Skip to content

feat(hooks): skip expected Pro-feature prompts in local error capture#27

Merged
josephismikhail merged 1 commit into
mainfrom
feat/skip-pro-feature-msgs
Jun 11, 2026
Merged

feat(hooks): skip expected Pro-feature prompts in local error capture#27
josephismikhail merged 1 commit into
mainfrom
feat/skip-pro-feature-msgs

Conversation

@josephismikhail

Copy link
Copy Markdown
Contributor

Summary

ix_capture_async (hooks/ix-errors.sh) now skips messages that are expected "needs Ix Pro" prompts (requires Ix Pro, Install @ix/pro, is a Ix/pro feature, premium features) instead of logging them to the local error store as if they were real failures.

Why

This is the still-useful half of the now-closed #3. That PR also de-duplicated the automatic GitHub-issue reporting, but commit 68e9391 ("security: remove automatic GitHub issue reporting (phone home)") removed external reporting entirely — error capture is now local-only (~/.local/share/ix/plugin/errors/errors.jsonl). So the GitHub-dedup parts of #3 are moot; only the Pro-message filter still applies. This mirrors the equivalent filter merged in ix-openclaw-plugin#2.

Verification

  • bash -n hooks/ix-errors.sh clean.
  • Functional: feeding ix_capture_async a Pro prompt + a real error logs only the real error (both Pro prompts skipped).
  • bash tests/test_hooks.sh: 81 passed, 2 failed — identical to a clean checkout of main; the two failures are pre-existing env failures in the unavailable/ group (exit 127), not introduced here.

🤖 Generated with Claude Code

ix_capture_async now ignores messages that are expected "needs Ix Pro"
prompts ("requires Ix Pro", "Install @ix/pro", "is a Ix/pro feature",
"premium features") instead of logging them to the local error store as
if they were real failures.

This is the still-useful half of the closed #3: that PR also de-duped the
auto-GitHub-issue reporting, but commit 68e9391 removed GitHub reporting
entirely (errors are now local-only), so only the Pro-message filter is
relevant. Mirrors the equivalent filter merged in ix-openclaw-plugin#2.

Verified: bash -n clean; a Pro prompt + a real error through
ix_capture_async logs only the real error; tests/test_hooks.sh result is
unchanged vs main (81 passed, 2 failed — both pre-existing env failures
in the `unavailable` group, identical on a clean checkout).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@josephismikhail josephismikhail merged commit 49884e5 into main Jun 11, 2026
6 checks passed
@josephismikhail josephismikhail deleted the feat/skip-pro-feature-msgs branch June 11, 2026 16:18
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