fix(kiloclaw): persist and display actual volume size, bump default to 20GB#507
Open
pandemicsyn wants to merge 5 commits intomainfrom
Open
fix(kiloclaw): persist and display actual volume size, bump default to 20GB#507pandemicsyn wants to merge 5 commits intomainfrom
pandemicsyn wants to merge 5 commits intomainfrom
Conversation
…o 20GB - Add volumeSizeGb to DO persisted state schema and getStatus response - Backfill from Fly API via fire-and-forget in getStatus() and reconcileVolume() - Persist volume size on all 4 creation paths (provision, ensureVolume, fork, replace) - Display real volume size in dashboard badge (fallback 10GB before backfill) - Bump DEFAULT_VOLUME_SIZE_GB from 10 to 20 for new provisions
…e is cleared - Add backfillingVolumeSize in-flight guard to prevent duplicate Fly API calls - Clear volumeSizeGb at all 6 sites where flyVolumeId is set to null (start 404, reconcileVolume 404, tryDeleteVolume, finalizeDestroy, replaceStrandedVolume, Postgres restore)
Prevents stale volume size from leaking via the API when flyVolumeId has been cleared but volumeSizeGb persists in legacy state.
Contributor
Code Review SummaryStatus: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)CRITICAL
Files Reviewed (7 files)
|
| export const CHANGELOG_ENTRIES: ChangelogEntry[] = [ | ||
| { | ||
| date: '2026-02-24', | ||
| <<<<<<< HEAD |
Contributor
There was a problem hiding this comment.
CRITICAL: Unresolved merge conflict markers
This file contains <<<<<<< HEAD, =======, and >>>>>>> main conflict markers (lines 15–24). This will cause a runtime syntax error. The conflict needs to be resolved — likely by keeping both entries (as done in the kiloclaw/ copy of this file).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
volumeSizeGbin the DO state so the dashboard displays the real provisioned disk size instead of a hardcoded valuegetStatus()(fast — within one poll cycle) andreconcileVolume()(catches idle instances)DEFAULT_VOLUME_SIZE_GBfrom 10 to 20 for new provisions{volumeSizeGb} GB SSDdynamically, with a 10 GB fallback before backfill completesChanges
kiloclaw/src/schemas/instance-config.ts— AddvolumeSizeGbtoPersistedStateSchemakiloclaw/src/durable-objects/kiloclaw-instance.ts— Field, loadState, getStatus, backfill method, 4 volume creation sites, reconcileVolume backfillsrc/lib/kiloclaw/types.ts— AddvolumeSizeGbtoPlatformStatusResponsesrc/app/(app)/claw/components/InstanceControls.tsx— Dynamic disk size badgesrc/app/(app)/claw/components/changelog-data.ts— Bugfix entry