From f70d4fe5fce74a9b855fb5e1c8d19e79198f7d3e Mon Sep 17 00:00:00 2001 From: bcherb2 Date: Wed, 18 Nov 2026 01:24:39 -0500 Subject: [PATCH] feat: zshrc sets PI_CACHE_RETENTION and forces Wayland only on a Wayland session --- private_dot_zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/private_dot_zshrc b/private_dot_zshrc index dd7a9a5..794d2f4 100644 --- a/private_dot_zshrc +++ b/private_dot_zshrc @@ -41,7 +41,11 @@ export ZSH_AI_GEMINI_MODEL="gemini-2.5-flash" # Endpoint, not a credential — the matching key comes from secrets.zsh. export ZAI_BASE_URL="https://api.z.ai/api/anthropic" -(( _ubuntu )) && { +# Pi keeps Anthropic prompt caches for 1 hour, not 5 minutes: long agent runs +# often wait longer than 5 minutes between turns. +export PI_CACHE_RETENTION=long + +(( _ubuntu )) && [[ -n $WAYLAND_DISPLAY ]] && { export GDK_BACKEND=wayland export QT_QPA_PLATFORM=wayland export CLUTTER_BACKEND=wayland