Skip to main content
Version: v1 (Current)

Development Troubleshooting

Diagnose the stage that failed: creation, planning, hosted runtime, Git, build, release, installation or authorization. Keep the app, variant, branch, commit and session identifiers with the error when requesting help.

SymptomCheckNext action
App exists but Code or sessions are unavailableRepository initialization statusWait for completion; investigate failed initialization
Navigation is visible but an action is deniedTeam, resource ownership and action permissionAsk the team admin for the relevant scoped permission
API Keys has no manageable projectupdate_projects on the selected projectGrant project-token management access; developer visibility alone is insufficient
Code generation rejects the planSaved plan status and validationRefine fallback/draft plans, regenerate and approve
Agent work halts for creditsTeam quota and saved turn/sessionResolve allowance and continue through session recovery
New session warns about open PRsVariant production branch and PR targetsDecide whether to merge before starting; open PR source is not automatically included
Hosted editor disconnectsSession state, expiration and runtime logsRefresh status and reconnect or resume eligible saved work
Close reports that work was saved but cleanup failedRecovery branch/commit and runtime statusRetain references and retry cleanup after reviewing status
Build fails during installationnpm lockfile and package dependenciesCorrect and commit reproducible dependencies
Build succeeds without verified testsVerification result and test outputAdd/run meaningful finite tests; inspect no-tests/unverified results
Build cannot find a packagedist/ artifact count, name and sizeProduce exactly one valid .gxpapp package
Publish says no successful production artifactRepository, variant branch and successful build provenanceBuild the intended production branch again
Existing portal still shows an older appInstalled version selectionUpgrade that installation explicitly
Installed app has missing dataInstalled version, dependency identifiers and selector valuesResolve real project bindings and supported permissions
Page disappears or API returns 404Active state, audience rules and project contextTest effective rules and the selected portal link
Login-only page API returns 401Same-project attendee or active access-point credentialsRestore valid principal context
API request is forbiddenPrincipal type, token action, scope and recordInspect the actual authorization layer, not just login
Widget key fails on project data endpointsToken typeUse a supported page-context or server-integration path
Plan cannot finalizeUnresolved plugin worklist items or all items skippedResolve items and retain at least one active item

Planning and access checks​

A saved plan document is not by itself approval. The controller refuses draft, fallback and requires_refinement plans, confirms approval with the planning agent, and can return 409 while the agent is still updating the session. Wait for the current response and refresh the saved plan; refine and validate when requested. Do not repeatedly approve or generate from a stale document.

For an approved or previously failed app plan, generation also checks the saved approval timestamp, contract version, validated status and grounding result. A failed generation is not a reason to bypass those checks. Reopen the supported planning flow when the response requests refinement, then approve the validated revision. An already generating/generated plan can return a conflict rather than starting another copy.

Project-plan finalization is a separate worklist step. Resolve pending/planning plugin items, retain at least one non-skipped item, and include a theme when widgets need a portal. Finalization replaces the plan template from the current worklist. Confirm that worklist before finalizing again; a finalized template is not proof that a customer project has finished provisioning.

A planning HTTP 402 with insufficient_ai_credits concerns the team's AI-credit balance. Retain the existing planning session and turn, resolve the allowance through the supported team controls, then use the offered recovery path. Do not assume an uncertain request never reached the agent or create a replacement conversation merely to retry it.

For API-key management, the developer page lists only projects the admin can manage tokens for; that policy requires update_projects in the project's team scope. Developer navigation visibility does not grant it. Ask the appropriate admin to review the selected project and scoped permission. A token that can be issued still needs the correct explicit action/resource abilities and expiry for the intended integration.

An app's active preview and the team's concurrent-session limit are checked separately. Provisioning, cloning, installing, running and stopping sessions count toward admission. Finish or recover the existing operation before retrying creation. A slot-limit error is not proof that the app's source or repository initialization failed.

Diagnose a repository build​

Keep the build ID, repository, branch and full commit SHA together. The build request can use an explicit 40-character commit; otherwise it resolves the selected branch's commit before creating the build record. Confirm that record points to the intended revision before fixing a different checkout.

The current build job archives tracked committed source and sends it to the isolated builder. Uncommitted local files are not included. The job rejects a base64-encoded source archive longer than 700,000 characters; remove generated output or unnecessary committed assets from the repository and use supported asset storage when that limit is reached. Do not repeatedly enqueue an unchanged oversized revision.

StageCurrent contractRecovery
ManifestRoot app-manifest.json, manifest version 3, required name/version; name uses letters, digits, underscores or hyphensCorrect the manifest and commit it. The manifest cannot be a symlink.
Dependenciesnpm ci when package-lock.json exists, otherwise npm installCommit a compatible lockfile and dependencies; inspect the actual install log.
TestsRuns npm test when configured, with a finite five-minute command timeoutUse a command that exits and reports actual test results; avoid a watch process.
BuildRuns npm run build, with a ten-minute command timeoutInspect build output independently of test output.
ArtifactExactly one matching dist/[A-Za-z0-9_-]+.gxpapp, a regular nonsymlink file no larger than 20,000,000 bytesRemove stale matching packages, correct the manifest/package name, rebuild and inspect the resulting artifact.
Storage/version processingUpload and plugin-version processing follow isolated packagingInspect those later errors even when npm completed successfully.

These are current implementation limits, not a guarantee of end-to-end elapsed time or provider availability. The portal worker does not provide a fallback that runs repository npm commands directly.

Interpret verification separately​

The isolated runner records not_configured when there is no test script, no_tests for recognized zero-test output, passed for recognized positive results and unverified when successful output does not establish those results. A failed process or recognized failure output can fail the build. A zero exit code alone does not establish meaningful test coverage; retain the actual results for the built commit.

A build can therefore produce an artifact without verified tests. Add meaningful tests for the app's behavior and inspect the verification metadata instead of renaming an empty script to look successful.

Publish the intended artifact​

Variant publication requires a completed bundle on the variant's production branch, plus a successful build belonging to the app's configured repository and that branch with a valid full commit SHA. A missing bundle, incomplete bundle processing or mismatched build provenance requires a rebuild of the intended branch. Concurrent build/publish updates can return 409; inspect the current operation before retrying.

The publisher's successful-build/provenance check is separate from the test-verification status. Publication does not certify functional or authorization acceptance. After release, verify the consumer installation's selected version and real project bindings; an existing portal can still use an earlier installation.

Preserve recoverable work​

Before starting another session or resending an uncertain mutation, inspect the latest state. A dropped response may happen after a save, commit or agent turn completed. Use the existing session and recovery branch when offered. Do not discard saved source just because runtime cleanup failed.

Choose the correct session recovery path​

Connection state and agent execution state are separate. Refresh the existing session first and inspect its status, recovery branch/commit, pending callbacks and any successor-session reference.

ActionIntended useImportant checks
ReconnectRestore access to the original expired workspace in place when the platform can confirm itCurrent controller gate requires a session whose status is running or expired and whose expiry has passed, with a pod reference, no archive/successor and no pending callbacks. A refused or uncertain reconnect preserves recovery references; it is not permission to discard them.
Resume saved sessionProvision a successor from eligible archived/expired workRequires the original owner, saved branch, no existing successor and no active preview for the app, plus retention/concurrency/orchestrator checks. Use the successor after resume succeeds.
Resume executionContinue paused AI-assisted plan execution in the existing sessionAvailable only for AI-assisted sessions whose execution has not finished. It changes execution state; it is not a replacement for recovering an unavailable workspace.

Saved-session eligibility includes the deployment's archive-retention setting (default 30 days) measured from archival time or last row activity when archival time is absent. Available team session slots also matter. A disabled Resume action can therefore indicate retention, concurrency or state constraints rather than deleted source. Preserve the saved branch and ask for recovery using its references when the supported action is unavailable.

Pause is best effort: an already running tool call can finish before the agent honors the pause flag. Inspect the saved result before resending the same instruction. Resuming paused execution clears the pause request and returns execution to its executing state; it does not certify a completed task, build or release.

Saving succeeded but cleanup did not​

The commit-and-archive path saves work, records its recovery branch/commit and moves toward stopping before confirming pod termination. A response such as “Work was saved, but session cleanup could not be confirmed. Retry archival.” can therefore represent saved source with unfinished cleanup.

Retain the session ID, recovery branch and commit, refresh the session, and retry the offered archival operation. If recording the recovery checkpoint itself failed, keep the original session for retry and retain any returned references. Do not interpret HTTP 503 or a disconnected editor as evidence that the save never happened. When support is needed, include the last confirmed save and cleanup state separately.

The controller coordinates lifecycle operations through a session lock. A conflict or uncertain recovery response should be resolved against the existing session state before another create/resume/close request. These checks preserve recovery options; they do not promise every unavailable runtime can be reconstructed automatically.

Local versus deployed behavior​

Local Dev Tools and hosted preview can supply mock state. The installed portal uses actual project bindings, selected versions, attendee credentials and audience rules. Repeat functional and authorization checks there before release acceptance.

Useful evidence​

Capture the displayed error, failed operation, team/app/variant, relevant session or build ID, branch and commit, verification status and a minimal reproduction. Include which attendee audience or token scope you tested. Redact API secrets, private keys and attendee personal data from support material.