GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat: added configurable base directory. by mcking-07 · Pull Request #826 · pingdotgg/t3code Conversation
|
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Adds a configurable “base directory” for T3 Code data storage (~/.t3 by default), exposing it via T3CODE_BASE_DIR and a --base-dir CLI flag, and updates the server/dev-runner/test harnesses so state/worktrees paths become relative to this base.
Changes:
baseDir into server config and CLI/env resolution with documented precedence (--base-dir > T3CODE_BASE_DIR > default).<baseDir>/worktrees and make default state dir relative to base (<baseDir>/userdata).baseDir.Copilot reviewed 20 out of 20 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| turbo.json | Adds T3CODE_BASE_DIR to turbo global env passthrough. |
| scripts/dev-runner.ts | Adds base dir flag/env support and resolves derived dev state dir. |
| scripts/dev-runner.test.ts | Updates dev-runner env tests for new base dir behavior. |
| apps/server/src/wsServer.test.ts | Extends test server options to include baseDir. |
| apps/server/src/telemetry/Layers/AnalyticsService.test.ts | Updates test config layer to pass baseDir. |
| apps/server/src/provider/Layers/CodexAdapter.test.ts | Updates ServerConfig.layerTest calls for new signature. |
| apps/server/src/os-jank.ts | Adds resolveBaseDir + updates resolveStateDir to be base-dir aware. |
| apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.test.ts | Updates ServerConfig.layerTest calls for new signature. |
| apps/server/src/orchestration/Layers/ProviderCommandReactor.test.ts | Updates harness to manage temp base dirs and pass baseDir. |
| apps/server/src/orchestration/Layers/ProjectionPipeline.test.ts | Updates projection pipeline test layers to include baseDir and temp dir cleanup. |
| apps/server/src/orchestration/Layers/OrchestrationEngine.test.ts | Updates ServerConfig.layerTest calls for new signature. |
| apps/server/src/orchestration/Layers/CheckpointReactor.test.ts | Updates ServerConfig.layerTest calls for new signature. |
| apps/server/src/main.ts | Adds --base-dir + T3CODE_BASE_DIR env parsing and resolves base/state dirs with precedence. |
| apps/server/src/git/Layers/GitManager.test.ts | Provides ServerConfig layer to satisfy GitCore’s new dependency. |
| apps/server/src/git/Layers/GitCore.ts | Moves default worktrees directory under <baseDir>/worktrees. |
| apps/server/src/git/Layers/GitCore.test.ts | Provides ServerConfig layer for GitCore tests. |
| apps/server/src/git/Layers/CodexTextGeneration.test.ts | Updates test layer creation to pass baseDir/stateDir. |
| apps/server/src/config.ts | Adds baseDir to ServerConfigShape and updates layerTest signature. |
| apps/server/integration/OrchestrationEngineHarness.integration.ts | Updates integration harness to pass base dir into test config layer. |
| apps/desktop/src/main.ts | Derives desktop state dir from T3CODE_BASE_DIR and forwards it to backend env. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
i feel like we have too many flags already 😆, would be down to just have |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
nice, much cleaner... let me confirm the plan, removing
introducing
quick question on naming... should I go with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…and `--home-dir` flag.
|
@juliusmarminge, i have updated the PR to use the simplified approach we discussed: changes made:
behavior:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Can we update the pr title based on the current solution please |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
~/.t3) with T3CODE_BASE_DIR env and --base-dir flag. Fixes #748~/.t3) with T3CODE_HOME env and --home-dir flag. Fixes #748
|
Lets change the title to: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
~/.t3) with T3CODE_HOME env and --home-dir flag. Fixes #748|
description is outdated?
looks to me like we replace stateDir, correct? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
yes, description is outdated, #826 (comment) would be updated description... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@macroscope-app review this |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Mohammed Muzammil Anwar <[email protected]> Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Mohammed Muzammil Anwar <[email protected]> Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Mohammed Muzammil Anwar <[email protected]> Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Mohammed Muzammil Anwar <[email protected]> Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Mohammed Muzammil Anwar <[email protected]> Co-authored-by: Julius Marminge <[email protected]>
…-slice fallback Addresses all 3 blocking findings from PR #450 re-review (`pingdotgg#826`): 1. Preserve owning `environment_id` in `merge_fleet_list_results` (`entry_environments`) and route all PR follow-up reads, writes, HTTP diff fetches, and streams (`DetailView`, `CodeTab`, `GuideTab`, `LinkPreviewController`, `mutations`, `fetch_stats`, `fetch_options`, `refresh_from_host`, `ensure_row_stack`, `run_intent_prefetch`, `quick_action`) through `connections.destination(owner, ...)`. Gate `PullRequestsPage::sync` and `follow_refreshes` on fleet connectivity when fleet environments are present. 2. Track per-environment pagination cursors (`next_cursors_by_env`) and `truncated_envs` so `load_more` sends each server only its own cursors and skips servers with no remaining cursor or regrowth. 3. Prevent `fetch()` in fleet mode from falling through to the active `client_handle()` when zero fleet slices are dispatched (e.g. scoping to a project on an offline environment), and recover transiently errored fleet environments on reconnect, explicit Retry, or TTL expiry.
…TAIL (#450) * feat(native): restore PR and diff parity for DF-PANEL, PR-PAGE, PR-DETAIL * fix(native): address PR #450 review findings (fleet PR dedupe, rollback, clippy) Addresses all 5 blocking findings from PR #450 review: - Fix clippy warnings across workspace (`--all-targets -- -D warnings`): `is_multiple_of(3)` in `diff/fold.rs`, `CodeTabInit`, `LoadWithheldCallback`, `FleetInventory`, and `.flatten().flatten()` in `detail.rs`. - Wire multi-environment fleet PR queries, unreachable-environment failover (`pingdotgg#34088`), and cross-server URL deduplication (`pingdotgg#37704`) into `PullRequestsPage`, with GPUI test coverage. - Synchronously roll back optimistic batch label and reviewer mutations (and `Held` cache) on write failure before follow-up refresh. - Clear sticky `DiffPanel::revealed_path` across external PR, connection, thread, and scope switches. - Add Forgejo/Gitea `/pulls/` anchor routing (`pingdotgg#37703`) and pinned-first project filter ordering (`pingdotgg#29871`). * fix(native): route multi-env PR follow-ups, per-env cursors, and zero-slice fallback Addresses all 3 blocking findings from PR #450 re-review (`pingdotgg#826`): 1. Preserve owning `environment_id` in `merge_fleet_list_results` (`entry_environments`) and route all PR follow-up reads, writes, HTTP diff fetches, and streams (`DetailView`, `CodeTab`, `GuideTab`, `LinkPreviewController`, `mutations`, `fetch_stats`, `fetch_options`, `refresh_from_host`, `ensure_row_stack`, `run_intent_prefetch`, `quick_action`) through `connections.destination(owner, ...)`. Gate `PullRequestsPage::sync` and `follow_refreshes` on fleet connectivity when fleet environments are present. 2. Track per-environment pagination cursors (`next_cursors_by_env`) and `truncated_envs` so `load_more` sends each server only its own cursors and skips servers with no remaining cursor or regrowth. 3. Prevent `fetch()` in fleet mode from falling through to the active `client_handle()` when zero fleet slices are dispatched (e.g. scoping to a project on an offline environment), and recover transiently errored fleet environments on reconnect, explicit Retry, or TTL expiry.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Add env var for configurable base or root directory
There was an error while loading. Please reload this page.