fix(support-chat): retain model token budget and safe stage startup
Deploy Canina / deploy (push) Successful in 4m7s
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 6s

This commit is contained in:
devops committed 2026-10-14 19:28:37 +00:00
1 parent f4e715f2d1
commit d87885826c
2 files changed
+5 -1

No files matched your search

@@ -4,3 +4,7 @@ services:
SUPPORT_CHAT_URL: http://canina-bot:8643/support/ask
env_file:
- .support-chat.env
# Support-only deployment does not change the schema. Never run db push here.
command: ["node", "dist/main.js"]
frontend_stage:
command: ["sh", "-c", "sed -i 's/__BACKEND_HOST__/backend_stage/g' /etc/nginx/conf.d/default.conf /etc/nginx/http.d/default.conf && nginx && npm start"]
+1 -1
View File
@@ -57,7 +57,7 @@ def classify_once(message):
config = load_config()
model = config.get('model', {})
runtime = resolve_runtime_provider(requested=model.get('provider'), target_model=model.get('default'))
agent = AIAgent(model=model.get('default'), provider=runtime.get('provider'), base_url=runtime.get('base_url'), api_key=runtime.get('api_key'), api_mode=runtime.get('api_mode'), enabled_toolsets=[], disabled_toolsets=['all'], skip_memory=True, skip_context_files=True, skip_background_review=True, load_soul_identity=False, session_id=str(uuid.uuid4()), session_db=None, save_trajectories=False, quiet_mode=True, max_iterations=2, max_tokens=150, run_budget_seconds=35, checkpoints_enabled=False)
agent = AIAgent(model=model.get('default'), provider=runtime.get('provider'), base_url=runtime.get('base_url'), api_key=runtime.get('api_key'), api_mode=runtime.get('api_mode'), enabled_toolsets=[], disabled_toolsets=['all'], skip_memory=True, skip_context_files=True, skip_background_review=True, load_soul_identity=False, session_id=str(uuid.uuid4()), session_db=None, save_trajectories=False, quiet_mode=True, max_iterations=2, max_tokens=1800, run_budget_seconds=35, checkpoints_enabled=False)
agent._persist_disabled = True
try:
if getattr(agent, 'tools', None): raise RuntimeError('tools enabled')