Skip to content

fix: ripgrep symlink following and hidden files visibility#69

Closed
kdcokenny wants to merge 125 commits intokevint-cerebras:devfrom
kdcokenny:fix/ripgrep-symlinks-hidden-files
Closed

fix: ripgrep symlink following and hidden files visibility#69
kdcokenny wants to merge 125 commits intokevint-cerebras:devfrom
kdcokenny:fix/ripgrep-symlinks-hidden-files

Conversation

@kdcokenny
Copy link

@kdcokenny kdcokenny commented Feb 3, 2026

Summary

Ports upstream fixes from anomalyco/opencode:

  • PR #11415: Don't follow symlinks by default (prevents CPU exhaustion from symlink cycles)
  • PR #11553: Show hidden files by default in @ autocomplete

Changes

packages/opencode/src/file/ripgrep.ts

files() function:

  • Added hidden?: boolean and follow?: boolean parameters
  • --follow only added when follow: true (opt-in, prevents symlink loops)
  • --hidden added unless hidden: false (opt-out, shows dotfiles by default)

search() function:

  • Added follow?: boolean parameter
  • --follow only added when follow: true

packages/opencode/src/tool/grep.ts

  • Added --hidden to args for hidden file search

Testing

  • Typecheck passes
  • Manual test: Symlink cycles don't cause hangs
  • Manual test: Hidden files appear in @ autocomplete

Upstream References

kevint-cerebras and others added 30 commits December 8, 2025 19:06
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Add collaborators section to README
This reverts commit b72735c.

Restores multi-provider support and removes Cerebras OAuth login.
…otifs

notification system with toast, fullscreen, banner
kevint-cerebras and others added 23 commits January 27, 2026 13:56
…mit-bars-on-successful-req

only show limit bars when successful request is made
Adds a new skill that leverages Cerebras's blazing-fast inference for
rapid prototyping workflows. This skill guides users through iterative
development cycles that take full advantage of Cerebras's speed.

Key features:
- Structured prototyping workflow (sketch → iterate → refine)
- Multiple-approach exploration strategies
- Fast feedback loop patterns
- Parallel experimentation techniques

This is specifically valuable for Cerebras Code CLI because the
millisecond inference times make iteration cycles extremely cheap,
enabling developers to try more approaches in less time.

Amp-Thread-ID: https://ampcode.com/threads/T-019c0472-e495-7701-84f7-e6ab43f44d9c
Co-authored-by: Amp <amp@ampcode.com>
Replace fixed retry schedule with exponential backoff + jitter that
retries until the next hour boundary when rate limits reset.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Specification, Pseudocode, Architecture, Refinement, Completion —
a thinking-before-coding workflow that pairs well with fast inference.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add .cerebras as the primary config directory/file name while keeping
.opencode as a fallback. Add CEREBRAS_CODE_* env var aliases for all
OPENCODE_* flags.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Import types directly from @ai-sdk/provider-utils and @ai-sdk/provider
  to avoid namespace interpretation issues in tsgo
- Add explicit type annotations to callback parameters
- Fix z.record() calls for Zod 4 (requires key + value schemas)
- Use type assertions where type guards don't narrow correctly
- Add @ts-expect-error for runtime-only properties in @OpenTui

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Fix the off-by-3 bug in some of the command options.
…ed-prototyping-skill

feat: Add speed-prototyping skill
core: smarter retry backoff for Cerebras rate limits
When user skips Cerebras onboarding, show 'Not configured' instead of 'Loading...' to prevent indefinite hang.
fix(tui): Fixes infinite "Loading..." if Cerebras API key config is skipped
Change Priority of Cerebras Provider
Port upstream fixes from anomalyco/opencode:
- PR #11415: Don't follow symlinks by default (prevents CPU exhaustion)
- PR #11553: Show hidden files by default in @ autocomplete

Changes:
- ripgrep.ts files(): Add hidden/follow params with conditional logic
  - --follow only added when follow: true (opt-in)
  - --hidden added unless hidden: false (opt-out)
- ripgrep.ts search(): Add follow param with conditional logic
- grep.ts: Add --hidden to args for hidden file search

Refs:
- anomalyco/opencode#11415
- anomalyco/opencode#11553
@kdcokenny kdcokenny marked this pull request as ready for review February 3, 2026 13:34
@kevint-cerebras kevint-cerebras force-pushed the dev branch 4 times, most recently from c0e8f40 to b576ddb Compare February 13, 2026 00:41
@kevint-cerebras
Copy link
Owner

Thank you so much for this! Awesome pr (closing here because it already exists upstream)

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.

9 participants