Skip to content

test(grokcli): add rules global-mode e2e happy-path case (#1953)#1956

Closed
hernaninverso wants to merge 1 commit into
dyoshikawa:mainfrom
hernaninverso:feat/grok-rules-global-e2e
Closed

test(grokcli): add rules global-mode e2e happy-path case (#1953)#1956
hernaninverso wants to merge 1 commit into
dyoshikawa:mainfrom
hernaninverso:feat/grok-rules-global-e2e

Conversation

@hernaninverso

Copy link
Copy Markdown
Contributor

Summary

Closes #1953 (Finding 1). Adds the missing global-mode happy-path e2e entry for the grokcli rules target in src/e2e/e2e-rules.spec.ts:

{ target: "grokcli", outputPath: join(".grok", "AGENTS.md") },

grokcli registers supportsGlobal: true and the docs advertise the global scope, but the global-mode matrix only covered project mode. This mirrors the deepagents precedent (also supportsGlobal + folds non-root rules into the single root AGENTS.md), and matches the equivalent grokcli skills fix (#1944) and subagents global coverage (#1950).

Finding 2 in #1953 (stale PR description) needs no code change.

Testing

  • The grokcli rules e2e cases (project + the new global-mode) pass; pnpm check (oxfmt/oxlint/tsgo) and cicheck:content are clean.

Also closes the e2e gap recorded in #1917.

Follow-up from dyoshikawa#1953 (merged PR dyoshikawa#1909). grokcli registers
supportsGlobal: true and the docs advertise the global scope, but the
global-mode e2e matrix in e2e-rules.spec.ts only covered project mode.
Add the global entry, mirroring the deepagents precedent (also
supportsGlobal + folds non-root rules into the single root AGENTS.md).

Closes dyoshikawa#1953; also covers the e2e gap noted in dyoshikawa#1917.
@hernaninverso

Copy link
Copy Markdown
Contributor Author

Closing as redundant — I see you already added the same global-mode e2e entry ({ target: "grokcli", outputPath: join(".grok", "AGENTS.md") }) to main and closed #1953 while I was preparing this. Thanks!

@hernaninverso hernaninverso deleted the feat/grok-rules-global-e2e branch June 19, 2026 17:07
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.

Follow-ups from PR #1909: add grokcli rules global-mode e2e case

1 participant