We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 804e1c8 commit e788104Copy full SHA for e788104
1 file changed
src/bub/builtin/agent.py
@@ -41,7 +41,7 @@
41
CONTINUE_PROMPT = "Continue the task."
42
HINT_RE = re.compile(r"\$([A-Za-z0-9_.-]+)")
43
_CONTEXT_LENGTH_PATTERNS = re.compile(
44
- r"context.{0,20}length|maximum.{0,20}context|token.{0,10}limit|prompt.{0,10}too long|tokens? > \d+ maximum",
+ r"context.{0,20}(?:length|window)|maximum.{0,20}context|token.{0,10}limit|prompt.{0,10}too long|tokens? > \d+ maximum",
45
re.IGNORECASE,
46
)
47
MAX_AUTO_HANDOFF_RETRIES = 1
0 commit comments