Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(files): add ignored-file visibility toggle #5951

Closeddiegoarff(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/5951/headopened View on GitHub

What Changed

  • Add a Show ignored files toggle to the Files panel on web and mobile.
  • Include ignored paths in project listings only when explicitly requested, while keeping .git metadata hidden.
  • Style ignored file and folder icons and text with muted theme tokens, without adding labels.
  • Follow the existing toolbar conventions for tooltips, accessible labels, and pressed or selected state.
  • Add focused tests for real .gitignore classification, truncated-index correctness, and inferred mobile tree ancestors.
  • Document ignored-file browsing behavior.

Why

The Files panel currently omits gitignored paths entirely. This makes generated artifacts, caches, local configuration, and other intentionally untracked files impossible to inspect without leaving T3 Code.

This keeps the existing focused view as the default and makes ignored-file visibility an explicit opt-in. The typed contract is shared across the server, web, desktop-hosted web, and mobile clients.

Performance follow-up

The first opt-in can be noticeably slower in large workspaces because ignored paths currently require a recursive filesystem scan followed by VCS classification. Once loaded, subsequent toggles are nearly instant through the existing query cache.

A possible follow-up would move ignored-entry enumeration closer to the VCS or workspace-index boundary. For Git, the VCS driver could enumerate ignored entries directly instead of classifying the result of a recursive filesystem walk. Another option would be caching ignored-entry discovery per workspace and invalidating it incrementally from filesystem events.

Those changes affect indexing, VCS abstractions, caching, and watcher behavior. This PR intentionally does not change that architecture or introduce new entry caps, keeping it focused on the visibility toggle. The existing workspace-list cap work remains in #5107.

UI Changes

Ignored paths use muted icon and text styling so they remain distinguishable without adding visual noise. The styling uses semantic theme tokens and was checked across light, dark, and custom themes.

Default and enabled states

Ignored files hidden by defaultIgnored files shown
Ignored files hidden by defaultIgnored files shown in T3 Code Dark

Light theme and tooltip

Show ignored files tooltip and ignored styling in a light theme

Dark custom theme

Ignored-file styling in a dark custom theme

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes — Not applicable; no motion or timing behavior changed.

Built with GPT-5.6 in the Codex harness through T3 Code.


Note

Medium Risk Opt-in listing triggers a full workspace directory scan plus VCS classification (performance and new error paths on large repos); default listings are unchanged and .git stays hidden.

Overview Adds an opt-in Show ignored files control on web and mobile file browsers. Listings still hide ignored paths by default; toggling on passes includeIgnored through projectsListEntries / listEntries.

Server: WorkspaceEntries.list merges the search index with a recursive filesystem walk for paths missing from the index, classifies candidates via the VCS driver (filterIgnoredPaths), and returns them with ignored: true. .git is always excluded. New typed failures cover directory read, ignore classification, and VCS detection; WS maps them to ignored_entries_* / vcs_detection_failed.

Clients: Web drives Pierre tree “ignored” git styling and keeps the previous tree visible while the toggled query is pending. Mobile marks ignored rows (muted icon/text, accessibility) and threads selected through Android/native header toolbar buttons. fileTree only sets ignored on explicit leaf entries, not inferred parent folders.

Contracts gain optional ignored on ProjectEntry and includeIgnored on list input. User docs added under docs/user/files.md.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 7105b53725d8f18382a96a97cbc086c6a2c18856. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Add ignored-file visibility toggle to file browser on web and mobile

  • Adds an includeIgnored toggle (eye/eye-slash icon) to the web FileBrowserPanel, mobile ThreadFilesTreeScreen, and ThreadFileNavigatorPane; state is sent to the server via the updated ProjectListEntriesInput schema.
  • Extends WorkspaceEntries.list on the server to scan the filesystem for unindexed ignored files, classify them via VCS detection, and merge them into results marked with ignored: true.
  • Ignored entries are visually distinct: muted/dimmed on mobile (FileTreeRow) and mapped to a git-ignored color style on web.
  • Adds three new ProjectEntriesFailure error codes (ignored_entries_read_failed, ignored_entries_classification_failed, vcs_detection_failed) with corresponding WebSocket error payloads.
  • Risk: server-side ignored-entry discovery adds filesystem traversal cost when includeIgnored is requested; failures surface as new structured error types.
Macroscope summarized 7105b53.
    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro Plus

      Run ID: 21858f64-80ec-4ae7-86a0-e0e67a77ba35

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. Reviewed the Effect service changes (apps/server/src/workspace/WorkspaceEntries.ts, layer wiring in apps/server/src/server.ts, and the contract change in packages/contracts/src/project.ts). Layer wiring and dependency acquisition (yield* VcsDriverRegistry.VcsDriverRegistry, requirement exposed through WorkspaceEntries.layer and provided in server.ts) follow the conventions. One error-modeling violation in the new listIncludingIgnored failure path.

      Posted via Macroscope — Effect Service Conventions
    4. Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

      Fix All in Cursor ❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the [Cursor dashboard](https://www.cursor.com/dashboard/bugbot).

      Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.

      Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 5a679539db01866fb777bfc8a9f76bb0641057fc. Configure [here](https://www.cursor.com/dashboard/bugbot).
    5. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Needs human review

      This PR introduces a new user-facing feature (ignored file visibility toggle) with substantial server-side logic for directory scanning and VCS integration, new API parameters/errors, and coordinated UI changes across mobile and web platforms. New features with runtime behavior changes warrant human review.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    6. One finding on the new error modeling in WorkspaceEntries.listIncludingIgnored.

      Posted via Macroscope — Effect Service Conventions
    7. Note

      🤖 GPT-5.6 Sol responding on behalf of Theo

      We're closing this PR as we clean up the T3 Code backlog. Thank you for taking the time to put this together.

      This exposes ignored files through the server file tree and mobile file browser. That changes repository privacy expectations and needs a separate product decision, so we are not taking this implementation forward.

      If you believe we closed this in error, please reopen the PR and leave a comment explaining what we missed.

Sign in to join this conversation.