Sign-in problems, missing results, rejected starts and failed runs require different checks. For recurring failures, the host log supplies the technical details.
| Starting point | Appropriate checks |
|---|---|
| The browser cannot reach the UI. | Start with The UI does not open; check host reachability and sign-in separately. |
| An action does not start a run. | Compare the reason beside the action with A command is rejected. |
| A started run fails. | Open its detail and inspect the result and Log lines of this run — Show in screenshot. |
| A results view remains empty or outdated. | Check the workspace, branch and data notice first, then investigate missing findings or a read failure. |
The UI does not open
These commands first establish whether the host is reachable:
codecharter host status
codecharter host logs --level Warning
| Observation | Next step |
|---|---|
| Host does not start or its state is faulty. | Check the log for the cause. codecharter host restart starts a fresh host. |
| Host runs, but its discovery record is missing. | codecharter host restart replaces the undiscoverable host. Rejected second starts also appear in the host log, in second-instance.log. |
| Only the browser fails to open. | Run codecharter ui --no-browser and open the printed link in a local browser. |
| CLI and host report different builds. | Restart the host as the message describes. This ends open MCP sessions. |
codecharter ui exits with 1 when the host is unreachable and 0 otherwise. A failed browser launch alone therefore does not produce exit code 1.
The UI listens on 127.0.0.1 and accepts the hostnames 127.0.0.1 and localhost. Remote environments can use a browser on the host machine. Alternatively, private port forwarding can make the port available locally; the link must then use the forwarded port. Forwarding must not give other users access. Linux also applies the connection ownership rules.
An isolated host using --state-dir or CODECHARTER_HOST_STATE_DIR requires the same setting when running codecharter ui. See Running an isolated host.
The sign-in link has expired
A sign-in link is valid for 60 seconds and exactly one use. A used or expired link produces This login link is invalid, expired or already used.
Running codecharter ui again creates a valid link. The sign-in link is unsuitable as a bookmark. After sign-in, the session limits apply.
The session ends earlier than expected
| Trigger | Explanation |
|---|---|
| One hour without interaction | Live updates do not keep a session active. Scrolling, selecting and typing count as activity. |
| Eight hours since sign-in | The maximum session duration applies even during continued use. |
| Host stopped or restarted | The previous sign-in is no longer valid. |
codecharter ui supplies a new sign-in link. Session ended concerns browser access; stored results remain intact.
Stored insights are off
Under Settings → Stored insights — Show in screenshot, Capture — Show in screenshot shows the precise state:
| State | Remedy |
|---|---|
| Starting | Wait briefly for the store to become ready. |
| Off | Remove CODECHARTER_INSIGHTS from the startup environment and run codecharter host restart. Values off, false, 0, no and disabled turn recording off. |
| Not available | Check the stated reason and warnings in the host log. |
Off stops recording new data. Existing insights remain readable and show their earlier state. Without a readable insights store, the workspace list for loaded workspaces and views of the loaded analysis remain usable. Stored insights explains recording and retention.
The store did not answer
Messages such as The findings could not be read or The runs could not be read mean the query failed. They establish neither an analysis result nor data loss.
The following steps help narrow down the cause:
- Wait for an automatic refresh or use Try again where offered.
- Shorten the explorer's time range to query less data.
- For recurring failures, find A read of the insights store failed. and its cause in the host log.
- Check Stored insights — Show in screenshot to establish whether the store could open at all.
The page shows what was read last
A notice about the last successful read means a refresh failed after an earlier successful query. The page retains previous data and retries automatically. The notice disappears after a successful read.
Until then, figures and any graphs describe the last successful retrieval. For a persistent notice, follow The store did not answer.
The coverage badge old files refers to older measurement files used by a coverage run. Partial and old files explains that case.
The workspace is not loaded
Architecture graphs, hubs and a type's graph tabs need an analysis in memory. Load workspace, or Load in the workspace list, starts loading after confirmation of the estimated memory requirement.
The equivalent terminal command is:
codecharter host warm <path>
If the run ends without a loaded analysis, its detail page gives the reason. Automatic unloading can follow idle time, the memory budget or other unloading reasons. Last unloaded — Show in screenshot on the workspace page names the last known cause.
Stored findings, hotspots and project and type metrics remain available while the insights store is accessible.
A command is rejected
A rejected start shows its reason beside the action. This table summarizes the causes:
| Cause | Remedy |
|---|---|
| Workspace path does not exist. | Select an existing workspace. |
| Host does not know the workspace. | Run codecharter analyze once in the folder through the terminal or an agent. |
| No solution or project found. | Restore access to the project or remove the outdated workspace entry. |
| Several solutions in the folder. | Select a solution or load it with codecharter host warm <solution path>. |
| Invalid configuration. | Correct .codecharter/config.yml. codecharter analyze identifies the problem. |
| Workspace already unloaded. | Refresh the page; further unloading is unnecessary. |
| Workspace still loading. | Cancel the active load run. |
| Confirmation missing. | Open the action again and confirm in the dialog. |
| Valid license missing. | Install or renew the license; check sign-in if needed. |
| Run cannot be repeated or is no longer known. | Repeat the original invocation in the terminal or agent. |
| Same command already queued or running. | Follow or cancel the existing run. |
| Queue full. | Wait for an active run to finish, then retry. |
The simple host history retains at most 500 runs over 30 days. Older entries are unavailable there for actions.
The command could not be started. is the general message without a more specific reason. If a run fails after starting, its detail page contains the error and log link. For coverage, a build failure may prevent tests from running. The run bar leads to that run.
The outcome explanation for an unsuccessful workspace load. Reported error gives the specific cause: the run was accepted but could not complete successfully.
Graph query timeout
A graph, project-map or hub timeout means the workspace is loaded, but the query did not finish in time. Large solutions or other loading activity may be responsible.
- Check active runs on the overview and wait for them to finish.
- Use Try again, or Ask again on a type page.
- For a persistent problem, unload with
codecharter host evict <path>and load again.
Re-check cycles starts a fresh analysis. The first comparison with the default branch also loads that revision and can take several minutes.
No findings show up
An empty list has several possible causes. Workspace selection and branch first determine which findings are visible.
| Display or state | Next step |
|---|---|
| No open findings on the branch. | Check for a successful analysis. Analyse the branch or select another branch if needed. |
| No analysis recorded. | Start Analyze for the workspace. |
| No rule source configured. | Set up a rule directory with codecharter init, or a profile with codecharter config init --profiles <profile>. |
| No rule from the source evaluated. | Restore the rule cache with codecharter restore and analyse again. |
| Latest analysis failed. | Check the linked run and its error. |
| Repository marked Without insights. | Check insights: off in the repository configuration. Disabled recording produces no new stored findings. |
An unavailable or unreachable store is reported separately. Older data may have been removed by retention; Stored insights — Show in screenshot shows the retention periods.