Skip to content

Replace writeConfigObject with AI-aware updateConfigObject - #1537

Merged
mantrakp04 merged 49 commits into
devfrom
devin/1780423379-update-config-object
Jun 15, 2026
Merged

mantrakp04 merged 49 commits into
devfrom
devin/1780423379-update-config-object

Conversation

@mantrakp04

@mantrakp04 mantrakp04 commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Replaces writeConfigObject (destructive overwrite) with updateConfigObject — an async, AI-aware updater that preserves user-authored config structure (imports, external file references, helpers).

Dual-path approach:

  • Fast path (deterministic, no AI): plain static literal configs → override() + in-memory validation + atomic write
  • Agent path (custom structure): configs with import x from "./file.txt" with { type: "text" } etc. → Claude agent edits the external files in place, then validates

Safety guarantees:

  • Snapshot/restore: config + all relative imports are captured before the agent runs; rolled back on any failure
  • In-memory validation on fast path (never write unvalidated bytes)
  • Semantic check when config is evaluable; no-op detection + structural check when it isn't
  • Path traversal guard on imports (rejects ../ escapes)
  • Agent isolation: settingSources: [], strictMcpConfig: true, CLAUDE_CODE_DISABLE_AUTO_MEMORY, no Bash tool
  • scheduleSync only fires after a successful update
  • Bounded 120s timeout on agent runs (configurable via env var)

CI failures are preexisting on dev (ERR_PNPM_LOCKFILE_CONFIG_MISMATCH from overrides move without lockfile regen); this branch has zero lockfile changes vs dev.

Link to Devin session: https://app.devin.ai/sessions/cc7409a357bc472ea19fbed065f1229f
Requested by: @mantrakp04

Summary by CodeRabbit

  • New Features

    • Introduced partial configuration update functionality with validation and automatic rollback on failures.
    • Enhanced configuration management with support for more complex file structures and external references.
  • Chores

    • Added Claude Agent SDK dependency for configuration update operations.

Documentation

Docs for this feature were added in this branch:

  • New page docs-mintlify/guides/going-further/local-development.mdx — covers stack dev, the development-environment flow, and how dashboard edits are written back to the local config file (structure-preserving fast path vs. assistant path, external import … with { type: "text" } templates, validation + rollback). Added to docs.json nav; also fixes the previously-broken /guides/going-further/local-development links from index.mdx and self-host.mdx.
  • docs-mintlify/guides/going-further/cli.mdx — added a stack dev ("Run a development environment") section.
  • Skill-site AI prompts — filled in the config-docs and dashboard-instructions placeholders under packages/stack-shared/src/ai/unified-prompts/skill-site-prompt-parts/, and added a structure-preserving note to the setup prompt.
  • CHANGELOG.md — user-facing entry.

Apply RDE config updates in place instead of overwriting the whole file.
Plain static configs keep the deterministic render (fast path, no AI). Configs
with custom structure (imports, helper wrappers, external text refs) are edited
by a headless Claude agent so user-authored structure is preserved and
externally-referenced files are updated rather than inlined. Every edit is
validated (semantic when the config is evaluable, structural fallback
otherwise) and hard-fails on mismatch.

Co-Authored-By: mantra <[email protected]>
Copilot AI review requested due to automatic review settings June 2, 2026 18:03
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@vercel

vercel Bot commented Jun 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stack-auth-hosted-components Ready Ready Preview, Comment Jun 13, 2026 1:58am
stack-auth-internal-tool Ready Ready Preview, Comment Jun 13, 2026 1:58am
stack-auth-mcp Ready Ready Preview, Comment Jun 13, 2026 1:58am
stack-auth-skills Ready Ready Preview, Comment Jun 13, 2026 1:58am
stack-backend Error Error Jun 13, 2026 1:58am
stack-dashboard Ready Ready Preview, Comment Jun 13, 2026 1:58am
stack-demo Ready Ready Preview, Comment Jun 13, 2026 1:58am
stack-docs Error Error Jun 13, 2026 1:58am
stack-preview-backend Error Error Jun 13, 2026 1:58am
stack-preview-dashboard Ready Ready Preview, Comment Jun 13, 2026 1:58am

@coderabbitai

coderabbitai Bot commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds a deterministic in-place config update API that fast-paths static literal configs and uses a headless Claude agent for complex edits; includes parsing helpers, agent runner, validation + rollback, tests with agent mocking, and manager integration.

Changes

Remote Development Environment config update system

Layer / File(s) Summary
Shared config parsing helpers
packages/stack-shared/src/stack-config-file.ts, packages/stack-shared/src/config-rendering.ts
New tryParseStackConfigFileContent and stackConfigFileExportsConfig helpers detect static-only configs and validate config exports. Re-exported from config-rendering and tested against static literals, wrapped helpers, imports, and errors.
Claude agent invocation
apps/dashboard/package.json, apps/dashboard/src/lib/remote-development-environment/config-update-agent.ts
New runConfigUpdateAgent runs Claude agent via Anthropic SDK with restricted tools and dontAsk mode through Hexclave proxy. Strips CLAUDECODE to prevent nested agents, manages proxy URLs and timeout/abort, forwards stderr, and throws on agent errors. Dependency on @anthropic-ai/claude-agent-sdk added.
Config file update orchestration
apps/dashboard/src/lib/remote-development-environment/config-file.ts
updateConfigObject replaces writeConfigObject. Fast path for static configs: merge, rewrite, re-parse, canonicalize, and deep-compare before atomic write. Complex configs: snapshot imports, build a restricted prompt from flattened dot-path updates, invoke the agent, validate results, and restore snapshots on failure. Includes atomic writer, canonicalization, prompt builder, flattening helpers, and validation utilities.
Update behavior validation
apps/dashboard/src/lib/remote-development-environment/config-file.test.ts
Tests mock agent per test and validate: static fast path without agent, externally referenced file updates preserving import structure, semantic validation with wrapper preservation, agent rejection when result mismatches request, and rollback restoring config and referenced files.
Manager integration
apps/dashboard/src/lib/remote-development-environment/manager.ts
Switched applyRemoteDevelopmentEnvironmentConfigUpdate to new updateConfigObject API. Reorganized watcher suppression so config updates are wrapped in synchronouslyUpdatingConfigFiles, with debounced clear before sync triggering for fire-and-forget flows.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

  • hexclave/hexclave#1528: Adjusts config-file test imports/snapshots for hexclave rename; both PRs update the same test suite in config-file.test.ts.

Poem

🐇 I nibble bytes and watch them grow,

I stitch plain maps with steady tow —
When tangled trees need Claude's bright art,
I prompt, then guard each careful part.
If edits fail, I roll them back — smart heart.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title directly and concisely summarizes the main change: replacing writeConfigObject with an AI-aware updateConfigObject.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The PR description comprehensively covers objectives, technical approach (dual-path strategy), safety guarantees, and acknowledges preexisting CI issues. Documentation additions are detailed.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch devin/1780423379-update-config-object

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 and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (3)
packages/stack-shared/src/stack-config-file.ts (1)

118-139: ⚡ Quick win

Parser plugin inconsistency: importAttributes not enabled in parseStackConfigFileContent.

stackConfigFileExportsConfig uses plugins: ["typescript", "importAttributes"] (line 123) to parse files with import attributes syntax (e.g., import x from "./file.txt" with { type: "text" }), but the existing parseStackConfigFileContent (line 145) only includes ["typescript"].

This means a file with import attributes will:

  1. Pass the structural check in stackConfigFileExportsConfig
  2. Fail to parse in parseStackConfigFileContent/tryParseStackConfigFileContent

While this triggers the intended AI path (since tryParseStackConfigFileContent returns null), it creates an asymmetry where the validation helper accepts syntax the evaluation helper rejects. Consider adding "importAttributes" to parseStackConfigFileContent's plugin list for consistency, even if those files ultimately can't be statically evaluated.

Proposed fix
 export function parseStackConfigFileContent(content: string, filePath: string): ParsedStackConfig {
   if (content.trim() === "") return {};
   const ast = parser.parse(content, {
     sourceType: "module",
-    plugins: ["typescript"],
+    plugins: ["typescript", "importAttributes"],
   });
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/stack-shared/src/stack-config-file.ts` around lines 118 - 139, The
parser plugin list is inconsistent: stackConfigFileExportsConfig parses with
plugins ["typescript","importAttributes"] but parseStackConfigFileContent only
uses ["typescript"], causing files with import attributes to be accepted by the
export-check but fail actual parsing; update parseStackConfigFileContent (and
any helper tryParseStackConfigFileContent) to include "importAttributes" in its
parser plugins so both checks use the same plugin set (referencing the
parseStackConfigFileContent and tryParseStackConfigFileContent functions to
locate the change).
apps/dashboard/src/lib/remote-development-environment/config-update-agent.ts (1)

37-62: Consider adding a timeout to prevent indefinite agent execution.

The agent stream has no timeout constraint, so a stuck or slow agent could block config updates indefinitely. While the tools are safely restricted and this runs in a local dev environment, users waiting for config updates would experience poor UX.

Consider wrapping the agent call with a timeout (e.g., using Promise.race with a timeout promise) and providing clear error messaging when the timeout is exceeded.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/dashboard/src/lib/remote-development-environment/config-update-agent.ts`
around lines 37 - 62, Add a bounded timeout around the streaming call to query
inside runConfigUpdateAgent so the agent cannot run indefinitely: wrap the
for-await loop (the call to query({...}) that yields message objects) in a
Promise.race with a timeout promise (e.g., setTimeout that rejects after a
configurable duration) and ensure the timeout path cleanly aborts/cleanup and
throws a clear error (e.g., "Config update agent timed out after X ms") so
callers know the agent was terminated; keep the existing error handling for
message.type === "result" and non-success subtypes and ensure any resources or
streams from query are closed/aborted on timeout.
apps/dashboard/src/lib/remote-development-environment/config-file.ts (1)

131-148: 💤 Low value

Fast path commits changes before validation.

Lines 142-144: renderConfigObjectToFile atomically writes the file, then validation reads it back. If validation fails (line 145), the file has already been replaced with the potentially incorrect config. Since this is the deterministic path, a validation failure would indicate a bug in the rendering logic rather than corrupted input.

However, for consistency with fail-safe patterns, consider validating the rendered content in memory before writing to disk.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/dashboard/src/lib/remote-development-environment/config-file.ts` around
lines 131 - 148, The current fast path calls
renderConfigObjectToFile(configFilePath, target) before validating the written
file, which can replace the on-disk file with a bad render; instead render the
config to a string in memory, validate that string against the expected
canonicalized target (using canonicalizeConfig, isValidConfig, configsEqual,
etc.), and only if validation passes call renderConfigObjectToFile (or an
existing atomic writer) to persist it; if you need a helper, add
renderConfigObjectToString(target) or change renderConfigObjectToFile to
optionally accept pre-rendered content, validate the in-memory render against
target and throw before writing to disk, using the same configFilePath,
configUpdate, tryParseStackConfigFileContent flow for locating target.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/dashboard/src/lib/remote-development-environment/config-file.ts`:
- Around line 150-160: Before calling runConfigUpdateAgent, snapshot the current
state (read and store contents) of configFilePath and any
imported/externally-referenced files (use tryReadConfigForValidation as a hook
to gather baselineConfig and extend it to collect referenced files); run the
agent in a temp working directory or apply changes to temporary files, then call
validateAgentUpdate; if validateAgentUpdate throws, restore the original files
from the snapshot and rethrow the error, otherwise atomically replace the
originals with the validated updates—ensure the save/restore logic is tied to
configFilePath, baselineConfig, runConfigUpdateAgent, and validateAgentUpdate so
failures never leave configs mutated without a rollback.
- Around line 207-221: The flattenConfigUpdate function (walk inner function)
currently recurses into plain objects but drops empty objects because
Object.entries yields no entries; update walk so that when value is a plain
object and has zero keys you treat it as a leaf and push a ConfigChange ({ path:
fullPath, value: {} }) instead of recursing, while preserving existing recursion
for non-empty plain objects; refer to functions/types flattenConfigUpdate, walk,
Config and ConfigChange to locate the logic to change.

In
`@apps/dashboard/src/lib/remote-development-environment/config-update-agent.ts`:
- Around line 22-29: The function stripClaudeCodeEnv currently asserts
process.env as Record<string,string>, which is unsafe because process.env values
can be undefined; update stripClaudeCodeEnv to produce a true
Record<string,string> by iterating over Object.entries(process.env) (or
Object.keys) and copying only keys with non-undefined string values into a new
object, ensure CLAUDECODE is omitted (delete or skip it during the copy), and
return that validated object instead of using a type cast; refer to the
stripClaudeCodeEnv function name to locate and replace the unsafe assertion.

---

Nitpick comments:
In `@apps/dashboard/src/lib/remote-development-environment/config-file.ts`:
- Around line 131-148: The current fast path calls
renderConfigObjectToFile(configFilePath, target) before validating the written
file, which can replace the on-disk file with a bad render; instead render the
config to a string in memory, validate that string against the expected
canonicalized target (using canonicalizeConfig, isValidConfig, configsEqual,
etc.), and only if validation passes call renderConfigObjectToFile (or an
existing atomic writer) to persist it; if you need a helper, add
renderConfigObjectToString(target) or change renderConfigObjectToFile to
optionally accept pre-rendered content, validate the in-memory render against
target and throw before writing to disk, using the same configFilePath,
configUpdate, tryParseStackConfigFileContent flow for locating target.

In
`@apps/dashboard/src/lib/remote-development-environment/config-update-agent.ts`:
- Around line 37-62: Add a bounded timeout around the streaming call to query
inside runConfigUpdateAgent so the agent cannot run indefinitely: wrap the
for-await loop (the call to query({...}) that yields message objects) in a
Promise.race with a timeout promise (e.g., setTimeout that rejects after a
configurable duration) and ensure the timeout path cleanly aborts/cleanup and
throws a clear error (e.g., "Config update agent timed out after X ms") so
callers know the agent was terminated; keep the existing error handling for
message.type === "result" and non-success subtypes and ensure any resources or
streams from query are closed/aborted on timeout.

In `@packages/stack-shared/src/stack-config-file.ts`:
- Around line 118-139: The parser plugin list is inconsistent:
stackConfigFileExportsConfig parses with plugins
["typescript","importAttributes"] but parseStackConfigFileContent only uses
["typescript"], causing files with import attributes to be accepted by the
export-check but fail actual parsing; update parseStackConfigFileContent (and
any helper tryParseStackConfigFileContent) to include "importAttributes" in its
parser plugins so both checks use the same plugin set (referencing the
parseStackConfigFileContent and tryParseStackConfigFileContent functions to
locate the change).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 06275c5a-cde6-453a-946f-32a282dde88a

📥 Commits

Reviewing files that changed from the base of the PR and between a2a1483 and 767fa77.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (7)
  • apps/dashboard/package.json
  • apps/dashboard/src/lib/remote-development-environment/config-file.test.ts
  • apps/dashboard/src/lib/remote-development-environment/config-file.ts
  • apps/dashboard/src/lib/remote-development-environment/config-update-agent.ts
  • apps/dashboard/src/lib/remote-development-environment/manager.ts
  • packages/stack-shared/src/config-rendering.ts
  • packages/stack-shared/src/stack-config-file.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces the dashboard RDE config update mechanism from a lossy, full-file overwrite (writeConfigObject) to an async, in-place update flow (updateConfigObject) that preserves user-authored config structure (imports, wrappers, external file references). It introduces a fast deterministic path for plain static literal configs and an AI-agent-driven path for structured configs, with post-edit validation to hard-fail on mismatches.

Changes:

  • Add shared helpers to detect “static literal” configs and perform a lightweight structural sanity check (tryParseStackConfigFileContent, stackConfigFileExportsConfig).
  • Implement updateConfigObject with deterministic fast-path rendering vs. AI agent editing + validation.
  • Extend RDE watcher suppression to cover the full async update window; add tests with a mocked agent runner.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/stack-shared/src/stack-config-file.ts Adds parsing helpers and a structural export check for post-edit validation.
packages/stack-shared/src/config-rendering.ts Re-exports new shared helpers and adds tests for them.
apps/dashboard/src/lib/remote-development-environment/manager.ts Holds watcher-suppression across async updates and adjusts sync scheduling.
apps/dashboard/src/lib/remote-development-environment/config-update-agent.ts Adds a headless Claude agent runner for in-place config edits.
apps/dashboard/src/lib/remote-development-environment/config-file.ts Replaces overwrite logic with updateConfigObject including validation + prompting.
apps/dashboard/src/lib/remote-development-environment/config-file.test.ts Adds tests covering fast path, external-file updates, and validation failure cases.
apps/dashboard/package.json Adds @anthropic-ai/claude-agent-sdk dependency.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5 issues found across 8 files

Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.

Re-trigger cubic

@devin-ai-integration

Copy link
Copy Markdown
Contributor

@greptile-ai review

dev moved pnpm.overrides from package.json into pnpm-workspace.yaml (commit 82f470e), which pnpm 11.5.0 reads. Regenerated the lockfile so its overrides block matches, fixing ERR_PNPM_LOCKFILE_CONFIG_MISMATCH on frozen install.

Co-Authored-By: mantra <[email protected]>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

Regarding the 4/5 finding on page-client.tsx (handleEnable/handleDisable losing runAsynchronouslyWithAlert):

This is a false positive — the removal was intentional because runAsynchronouslyWithAlert was being called twice: once explicitly here, and once internally by the <Button> component (apps/dashboard/src/components/ui/button.tsx:80):

onClick={(e) => runAsynchronouslyWithAlert(handleClick(e))}

Both onEnable and onDisable are passed as onClick to <Button> inside AppStoreEntry (lines 162, 173). The Button component automatically wraps all async onClick handlers, so errors from updateConfig are properly surfaced as alerts. The previous code was redundantly double-wrapping.

@greptile-ai review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Fixed both observations in 2e40e48:

  1. Client-side fetch timeout: Added AbortSignal.timeout(130_000) to the apply-update fetch call — 10s headroom above the 120s server-side agent ceiling, so the browser request fails cleanly if the server stalls.

  2. Structural validation tradeoff: Added an inline comment in validateAgentUpdate documenting the accepted limitation when jiti can't evaluate the config (structural-only fallback can't catch silently mis-applied values).

@greptile-ai review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

@greptile-ai review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Addressing the two findings from the latest review:

Issue 1 — runAsynchronouslyWithAlert removed from page-client.tsx (false positive)

handleEnable/handleDisable are passed to <AppStoreEntry onEnable={...} onDisable={...}>, which passes them as onClick to the <Button> component. The Button component already wraps all async onClick handlers with runAsynchronouslyWithAlert internally:

// apps/dashboard/src/components/ui/button.tsx:80
onClick={(e) => runAsynchronouslyWithAlert(handleClick(e))}

The previous explicit runAsynchronouslyWithAlert wrapper was redundant (double-wrapping). Errors from updateConfig are surfaced as alerts via the Button component.

Issue 2 — readConfigFile unused in waitForSync === true branch (valid, fixed)

Fixed in bc68197: moved readConfigFile call inside the waitForSync === false branch so the true path no longer pays for a redundant jiti evaluation.

@greptile-ai review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Addressed the two remaining observations from the 5/5 review:

Observation 1 — Structural no-op should not hard-fail

Changed the no-op check in validateAgentUpdate from a throw to console.warn. An idempotent re-apply on a config jiti can't evaluate (e.g. .wasm import) no longer errors — it warns and proceeds to the structural export check.

Observation 2 — MultiEdit/NotebookEdit dead check

Removed MultiEdit and NotebookEdit from FILE_MUTATING_TOOLS since neither is in the agent's allowedTools list. The boundary check now only covers Write and Edit.

All 13 tests pass (4 local-config-updater + 9 dashboard config-file).

@greptile-ai review

…ad of throwing, remove dead MultiEdit/NotebookEdit from FILE_MUTATING_TOOLS

Co-Authored-By: mantra <[email protected]>
Comment thread packages/shared-backend/src/index.ts Resolved
The TypeScript config type does not accept null for individual sign-up rule
entries. Replaced with properly-typed disabled rules that demonstrate the
feature without breaking the build.

Co-Authored-By: mantra <[email protected]>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

Fixed the Type 'null' is not assignable build error in examples/demo/hexclave.config.ts — replaced null signUpRules with properly-typed disabled rule objects (7f4ac25). Also addressed both Greptile inline findings above (one already fixed in d344f04, one is a false positive re: Button wrapping).\n\n@greptile-ai review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Fixed lint (4→2 space indentation in manager.ts imports) and demo config type error (null→typed rule objects). @greptile-ai review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Merged dev + regenerated docs codegen (setup.mdx, llms-full.txt, hexclave-agent-reminders.jsx, home-prompt-island.jsx). @greptile-ai review

@N2D4 N2D4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is there a fast path and an agent path? i generally don't like fallbacks, so i think we should avoid doing that. i think we can always use the agent path.

generally also the PR turned out larger than i expected. what do you think the reason is? is there a way to simplify it you think? trying to update my priors here

do we need an extra package for the local-config-updater? can we have it in stack-shared instead?

@mantrakp04

Copy link
Copy Markdown
Contributor Author

why is there a fast path and an agent path? i generally don't like fallbacks, so i think we should avoid doing that. i think we can always use the agent path.

generally also the PR turned out larger than i expected. what do you think the reason is? is there a way to simplify it you think? trying to update my priors here

do we need an extra package for the local-config-updater? can we have it in stack-shared instead?

there is no fallback here
it uses logic/code to write the file in 2 cases:

  • if --overwrite tag is passed, this one doesn't use the ai
  • creating a new config file for the first time
    only the updates are passed thru the ai

and the reason for local-config-updater and not stack shared is cuz claude code was getting bundled with the sdks

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this need to be its own package? can't we have it in stack-shared? feels superfluous to add an extra package just for this

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename this as discussed

mantrakp04 and others added 4 commits June 12, 2026 12:56
- Removed all instances of '@hexclave/local-config-updater' and replaced them with '@hexclave/shared-backend' across various files, including configuration and test files.
- Introduced a new package '@hexclave/shared-backend' with its own configuration and dependencies.
- Updated pnpm-lock.yaml to reflect the new package structure and dependencies.
- Ensured that all related imports and usages are correctly pointing to the new shared-backend package.

This change centralizes the configuration management under the shared-backend package, improving maintainability and clarity in the codebase.
- Updated various dependencies in pnpm-lock.yaml, including downgrading '@supabase/supabase-js' and related packages from version 2.107.0 to 2.106.2.
- Adjusted eslint-related dependencies to use [email protected] instead of [email protected].
- Added new environment variables 'CRON_SECRET_OLD' and 'BLOB_READ_WRITE_TOKEN' in turbo.json for enhanced configuration management.

This branch had an error being deployed

1 failed and 4 active deployments
Preview – stack-preview-backend — 316339d1 Deployed Jun 13, 2026 by vercel[bot]
Preview – stack-preview-dashboard — 316339d1 Deployed Jun 13, 2026 by vercel[bot]
Preview – stack-auth-internal-tool — 316339d1 Deployed Jun 13, 2026 by vercel[bot]
Preview – stack-auth-mcp — 316339d1 Deployed Jun 13, 2026 by vercel[bot]
Preview – stack-auth-skills — 316339d1 Deployed Jun 13, 2026 by vercel[bot]
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.

3 participants