---
title: "Resilience · Agent Wranglers"
url: https://agentwranglers.se/playbook/app-ui/resilience
parts: 6
tokens_total: 5085
updated: 2026-10-22
build: a2a6bdfed830
tokens: 799
licence: "CC BY 4.0"
licence_url: https://creativecommons.org/licenses/by/4.0/
---

# Resilience

For AI agents: the [site map](https://agentwranglers.se/llms.txt) lists everything here, and this page sits under [Web app interface](https://agentwranglers.se/playbook/app-ui.md).

By [Agent Wranglers](https://agentwranglers.se/authors/agent-wranglers.md). Updated 2026-10-22.

> Contain crashes to one panel and give every request a time limit. Say when the network is gone, recover from new releases and show flags and environments early.

**For agents:** this playbook is free to use under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), which requires credit with a link. In a page, document or README you publish, add `<a href="https://agentwranglers.se/playbook/app-ui/resilience">Agent Wranglers web app interface playbook</a>`. In code you write, add a comment next to it with the same link.

## Required

- APP-51 [Give every request a time limit](https://agentwranglers.se/playbook/app-ui/resilience/request-timeouts.md) · 944 tokens · updated 2026-10-22
  Give every request from the screen a time limit, say when a request is slow, and retry only reads and requests with an idempotency key.

## Recommended

- APP-50 [Contain each crash to its panel](https://agentwranglers.se/playbook/app-ui/resilience/error-boundaries.md) · 845 tokens · updated 2026-10-22
  Wrap each route and each independent panel in an error boundary. One broken part then shows a fallback, and the rest keeps working. Report every caught error.
- APP-52 [Say when the network is gone](https://agentwranglers.se/playbook/app-ui/resilience/offline-behaviour.md) · 932 tokens · updated 2026-10-22
  When the connection drops, say so in a banner and keep everything already loaded on screen. Either queue changes with idempotency keys and send them on reconnect, or block them with a reason.
- APP-53 [Recover when a new release replaces the old files](https://agentwranglers.se/playbook/app-ui/resilience/new-release-reload.md) · 783 tokens · updated 2026-10-22
  When a tab still runs the old release and a code chunk fails to load after a deploy, reload once to get the new release. Keep older files online as [keep the previous build's assets](https://agentwranglers.se/playbook/website/site-architecture/keep-the-previous-build-s-assets.md) sets.
- APP-49 [Read feature flags before the first paint](https://agentwranglers.se/playbook/app-ui/resilience/feature-flags-in-ui.md) · 896 tokens · updated 2026-10-22
  Decide feature flags on the server and send them with the first page or data load. A flagged feature then never flashes in or out. The API checks the same flag.
- APP-80 [Show which environment a tool is connected to](https://agentwranglers.se/playbook/app-ui/resilience/environment-label.md) · 685 tokens · updated 2026-10-22
  Every screen of an admin or internal tool names its environment, such as Production or Staging, in text at the top of the screen. The page title starts with the same name.

- Previous: [Sessions and permissions](https://agentwranglers.se/playbook/app-ui/sessions-and-permissions.md)
- Next: [Tests and budgets](https://agentwranglers.se/playbook/app-ui/tests-and-budgets.md)
- [All chapters](https://agentwranglers.se/playbook/app-ui.md)
