FrankenTerm

Troubleshooting

265 words1 min read7 subsectionsFrom the README at ft 0.15.21

On this page7
Compatibility backend returns empty pane listDaemon won't start: "watcher lock held"High memory usagePattern not detectingRobot mode returns errorsTransaction failuresOperating envelope denying admission

For a step-by-step operator guide (triage → why → reproduce), see docs/operator-playbook.md.

Compatibility backend returns empty pane list

Use ft status to verify the exact pre-existing mux endpoint and workspace. Do not start a new GUI instance as a diagnostic: doing so can steal focus and creates a different endpoint rather than explaining the empty result.

Daemon won't start: "watcher lock held"

Another ft watcher is already running.

Use ft status to identify the exact workspace and watcher owner. Do not force-stop a shared or unidentified watcher and do not manually delete its lock. Coordinate normal shutdown only for an explicitly owned disposable instance.

High memory usage

Classify the residency source first instead of assuming a heap leak. The resource-pressure cockpit contract separates rust_heap, mmap_file_backed, sqlite_page_cache, graphics_media, scrollback_cache, child_processes, and unknown resident bytes. See docs/operator-playbook.md for the collection flow.

bash
ft doctor --json > /tmp/ft-doctor-memory.json
ft status --health > /tmp/ft-status-health.txt

To poll less frequently, increase the interval in ft.toml:

toml
[ingest]
poll_interval_ms = 500

Pattern not detecting

bash
ft -vv watch --foreground
ft rules test "Usage limit reached. Try again later."
ft rules list --verbose

Robot mode returns errors

bash
ft status                               # check watcher is running
ft robot state                          # verify pane exists
wezterm cli list                        # backend sanity check
ft robot send 0 "test" --dry-run        # check policy blocks

Transaction failures

bash
ft tx plan --contract-file tx.json                # validate before running
ft tx run --fail-step tx-step:commit              # failure injection
ft tx show --include-contract                     # inspect what happened

Operating envelope denying admission

The operating-envelope planner (ft.operating_envelope.v1) is library-resident; ft swarm envelope (and ft robot swarm envelope for agents) renders its current verdict and reason codes. The resource cockpit behind it appears in ft doctor --json under swarm_capacity.resource_cockpit once a watcher has published a health snapshot. Use:

bash
ft swarm envelope                                            # verdict + limiting inputs
ft swarm envelope --surface explain --explain-reason <code>  # drill into one reason code
ft doctor --json | jq .swarm_capacity

If admission is denied because telemetry is missing (rather than critical), the operator runbook (docs/operator-runbook.md, ft-booek.6) walks through restoring the missing source. If it's denied because of critical pressure, the envelope's reason codes name the input responsible (RCH pressure, network pressure, process snapshots, fleet memory tier, or SQLite write-queue depth).