> ## Documentation Index
> Fetch the complete documentation index at: https://demoman.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Refusals

> Every reason Demoman stops that needs you, and what to do about it.

When Demoman stops, it names a reason and a detail. Your agent handles most
reasons itself; these are the ones that need you. The detail always says more
than this page can: read it first.

## Sign in

| Reason | What to do |
| - | - |
| `signedOut` | The app sent Demoman to its sign-in page, or the page `signin` was given showed none of what it showed there signed in. Run the `npx demoman signin` command the detail gives, or add a demo account |
| `signInFailed` | A demo account's steps ran but the page still asked to sign in. Fix the account's `signIn` or its secret |
| `sessionUnreadable` | A saved session could not be read, or is readable by other users. The detail names the fix |
| `sessionNotLoaded` | The browser refused the saved sessions. Run `npx demoman signin` again for that site |
| `accountsInvalid` | `.demoman/accounts.json` breaks a rule; the detail names the field |
| `unknownAccount` | The DemoScript names an account the site does not have, or none and the site has no `default` |
| `secretMissing` | No value for a secret an account signs in with. Set `DEMOMAN_SECRET_<NAME>`, or add it to `.demoman/secrets.env` ([accounts.json](https://demoman.io/docs/reference/accounts-json.md#secrets)) |
| `secretTooShort` | A secret is under 8 characters |
| `secretUnbound` | A secret has no `_ORIGIN` beside it naming its site. Nothing was typed |
| `secretOffOrigin` | A secret was about to be typed on another site than its own. Nothing was typed |
| `secretsFileNotIgnored` | Git does not ignore `.demoman/secrets.env`, so Demoman did not read it. Add it to `.gitignore` |
| `secretsFileInvalid` | A line of `.demoman/secrets.env` is not `DEMOMAN_SECRET_NAME=value`, a comment or blank |

## Runs

| Reason | What to do |
| - | - |
| `browserMissing` | Demoman's browser or its system libraries are missing. Run the command the detail gives |
| `unsupportedPlatform` | This machine cannot record: it needs macOS or x86\_64 Linux |
| `windowDidNotOpen` | The browser window did not open. Retried once; the detail says whether there is no display |
| `settingUnreadable` | `.demoman/config.json` holds a `recordingFrameRate` that is not 30 or 60, so the run or probe did not start. Fix the file the detail names |
| `windowClosed` | With `--headed`, the window was closed mid-run. Leave it open |
| `studioDidNotStart` | The Studio did not start; the detail quotes its log |
| `videoExpired` | The video's frames have expired. Record the flow again, then export |
| `unresolvedAnchor`, `waitTimeout` | A run stopped: a step's target was not on the page, or never showed. Your agent fixes most of these. When the target is inside a closed shadow root, the detail says so: no run can reach one (a known limitation), so the step needs a target outside it |

## Adding a flow

| Reason | What to do |
| - | - |
| `notCarried` | The current video has Studio edits a new video does not carry: a cut, a split, a mask, a hold, a gap, a zoom you placed, or an end trim that can't be placed. Remove them in the Studio, or record the flow again |
| `unfilledHoles` | The video typed text it never read, so a new video would not know what to type. Record the flow again |
| `cannotRefilm` | The video can't be recorded again; the detail names why: no scene left, no account the site can choose, or a script that won't build |
| `handSignIn` | The flow was recorded after `signin`. Record it again with a demo account |
| `unknownVideo` | No flow in your library has that name or id. Check `npx demoman studio` for the name |
| `notInRepo`, `outsideRepo` | Run `add` inside the repo, with paths inside it |
| `outputTaken` | Another flow already writes to that path, or a file is there that is neither this flow's output nor a Demoman video |
| `logoUnreadable` | The brand kit's logo could not be read |
| `wallpaperUnreadable` | The background image could not be read, so the video would fall back to the plain gradient |
| `exportFailed` | An export failed; the detail says which and why. Nothing is half-written. When it says the output "has no settled screen to compare against", no page in the video settled, and the detail lists each screen and why: record the flow again once the page can settle. When it says the video "has no page screens to compare: it was recorded before page screens", record the flow again |
| `keepRefused` | The request itself was refused: a `files` output given as a path, a name two flows in the repo share, a path inside `.git` or `.github`, or a path that does not end in its file type's extension |
| `repoFlowUnwritable` | The DemoScript was written but the old file it replaces could not be removed; delete the file the detail names |
| `videoChanged` | Studio only: the video was edited after you pressed Add to repo, so nothing was written. Press Add to repo again to add it as it is now |
| `repoFlowNameTaken` | Your library has a different flow with the repo flow's name. Run the `join-flow` command the detail gives |
| `duplicateFlow` | Two DemoScripts in `.demoman/flows/` name one flow. Delete one |
| `repoFlowUnreadable` | A DemoScript in `.demoman/flows/` will not read; the detail names it |

## Setting up CI

`setup --ci` writes nothing outward until you confirm.

| Reason | What to do |
| - | - |
| `ghMissing`, `ghSignedOut`, `notGitHub`, `githubUnreadable` | Install `gh` and run `gh auth login`; the repo must be on github.com |
| `alreadySetUp` | The workflow on the default branch is already this release's, or setup cannot tell its trigger and none was given |
| `setupPrOpen`, `setupBranchExists` | A setup pull request is open, or `demoman/setup` exists without one. Merge or close it |
| `noRepoFlows`, `flowUnreadable` | No flow in the repo to refresh, or a DemoScript will not read |
| `noRelease`, `noDeployment` | The trigger you chose has nothing on record. Pick another |
| `routeRefused` | Deployment and release triggers cannot use the `main` route |
| `workflowRefused` | The workflow cannot be written from these names; the detail says which to rename |
| `appUnknown`, `appHoles`, `appInvalid` | No app found, a field still unknown, or `.demoman/app.json` is invalid |
| `appOriginMismatch` | A flow records at another origin than `app.json`'s `url` |
| `appInstallFailed`, `appStartExited`, `appNeverAnswered`, `appServiceFailed`, `appDockerMissing` | The check could not install or start the app or a service; the output's last lines come with it, and the drafted `app.json` is left in your working tree to fix |
| `appPortTaken` | Something already answers at `url`. Stop it |
| `appNowInFuture`, `appNowTooOld`, `appNowNotPinned` | `now` in `app.json` is ahead of the clock, more than 7 days old, or the app was already running. See [Pinned dates](https://demoman.io/docs/reference/app-json.md#pinned-dates) |
| `secretsUnknown` | A DemoScript will not read, or no account can be chosen for its site |
| `secretMissing`, `secretTooShort`, `secretsUnreadable`, `envFileUnreadable` | A secret has no value or is under 8 characters, or GitHub's secrets or your env file could not be read |
| `checkoutFailed`, `setupUnreadable`, `filesUnreadable` | A git or file step failed while planning. Nothing was written |
| `refreshFailed` | The check's refresh failed on a flow |
| `checkStopped` | You pressed Ctrl-C. Nothing was written |
| `secretRefused` | GitHub refused a secret. No pull request was opened |
| `actionsRefused`, `actionsUnknown` | The Actions setting was refused or unreadable. In an organisation that forbids it, an owner allows it under Settings → Actions → General |
| `prFailed` | The pull request could not be opened; secrets already set stay |

## Pull requests

| Reason | What to do |
| - | - |
| `ghMissing`, `ghOutdated`, `ghSignedOut` | Install or update `gh`, and sign in |
| `prNotFound`, `prUnreadable` | The pull request does not exist, or GitHub did not answer |
| `uploadRefused` | GitHub refused the video |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.