Repository navigation
fix(inertia): address partial reloads by their server-side prop names - #79
Merged
Merged
Conversation
`only:` is matched by inertia_rails against the prop names the controller declares — snake_case — before our camelCase prop transformer runs (config/initializers/inertia.rb). Six call sites asked for the camelCase name, matched nothing, and got back a response with the prop missing; the client merged nothing and kept its stale value. Onboarding is where this was visible: the agent step creates an auth session and then reloads `authSessions` to pick it up, and every cable refresh does the same. Neither ever delivered the session, so the Connect panel sat on "Starting auth session..." forever, no agent could be connected, and "Get started" stayed disabled — until a full page reload, which is not a partial request and returns every prop. Three frontend tests asserted the broken key; they are corrected, and a request test pins both halves of the contract on the onboarding page. Not touched: RepositoriesContent's `only: ['editBranches']` is a different bug — the repositories controller serves no such prop under any casing. Signed-off-by: Dmitry Vislov <[email protected]> Co-Authored-By: Claude Opus 5 <[email protected]>
alex-astafyev
pushed a commit
to alex-astafyev/flow
that referenced
this pull request
Aug 19, 2026
* origin/develop: fix(board): give a task's run to its assignee, not to whoever pressed Run (AixleHQ#80) refactor(profile): redesign My Profile into paired identity/agents bands (AixleHQ#78) fix(inertia): address partial reloads by their server-side prop names (AixleHQ#79)
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.
Problem
Onboarding could not be completed on the first attempt: the "Connect your agents" panel sat on "Starting auth session..." forever, no agent could be connected, and "Get started" stayed disabled. A full page reload made everything appear.
Root cause
only:on a partial reload is filtered byinertia_rails(PropsResolver#excluded_by_only_partial_keys?) against the prop names the controller declares — snake_case. The camelCase form only appears later, in theprop_transformerfromconfig/initializers/inertia.rb. Six call sites asked for the camelCase name, matched nothing, and got back a response with the prop missing; the client merged nothing and kept its stale value.Verified against
/onboarding:Onboarding was hit hardest because the whole step is built on this: after
POST /api/v1/terminal_sessionsit runsrouter.reload({ only: ['authSessions'] }), and every cable broadcast about the session changing state (starting → ready) does the same. The session never arrived. A full page reload is not a partial request, which is why it worked there.Introduced by the onboarding redesign (db0c683 / 5a086d9), where the agent-connection step started relying on partial reloads.
What's in this PR
Six keys corrected to the server-side prop names:
Onboarding/OnboardingPage.tsx(×2)authSessionsauth_sessionsProfile/Show.tsxagentModelsagent_modelsassets/AssetsContent.tsxassetVersionsasset_versionsOverview/OverviewPage.tsxworkflowRunStats,boardTaskDistribution,recentActivityconnectors/ConnectorCatalogModal.tsxconnectorQueryconnector_queryThree frontend tests asserted the broken key — corrected. A request test added to
onboarding_render_test.rbpins both halves of the contract: the snake_case key resolves the prop, the camelCase one does not.Left alone:
only: ['editBranches']inRepositoriesContent.tsxis a different bug —repositories_controllerserves no such prop under any casing. AndcatalogSkills/catalogQueryinSkillsCatalogModal.tsxare correct:skills_controllerdeclares them in camelCase.Verification
docker compose exec -T web make check_all— fully green (rails-test, rubocop, brakeman, system-test, eslint, typescript, fe-test, vite-build).🤖 Generated with Claude Code