Skip to content

fix(rules): handle retired worktrees and pasted command output - #134

Merged
aldanux merged 2 commits into
mainfrom
fix/standing-rules-missing-worktrees
Sep 24, 2026
Merged

aldanux merged 2 commits into
mainfrom
fix/standing-rules-missing-worktrees

Conversation

@aldanux

@aldanux aldanux commented Sep 24, 2026

Copy link
Copy Markdown
Owner

What changed, and why

Historical worktrees that no longer exist caused standing-rule commands to
report a consented project as unconsented. Resolve those stored paths through
their existing physical ancestor while retaining denial and symlink checks.

Pasted multiline elepha: output could also trigger an unwanted help injection.
Ignore it before opening the database and keep internal wrapper markers out of
verbatim replies. Both user-visible fixes have patch changesets.

How it was verified

  • Build, both typechecks, Biome and git diff --check passed.
  • The user ran npm test and reported a pass.
  • The installed Codex CLI lists rules correctly; a pasted-output hook check
    returns not_command.
  • Temporary-rule behavior passed in Codex and OpenCode with exact injection
    receipts. The user also confirmed Claude behavior; a matching local
    SessionStart receipt was not captured.
  • The temporary rule was removed.

Before merging

  • Patch changesets included.
  • Conventional commits.

@aldanux
aldanux merged commit 03ed7c3 into main Sep 24, 2026
5 checks passed
@aldanux
aldanux deleted the fix/standing-rules-missing-worktrees branch September 24, 2026 13:23
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