Spaces:
Sleeping
Sleeping
Claude Code Claude Opus 4.6 commited on
Commit ·
ef0edf5
1
Parent(s): c5a48eb
Claude Code: fix: add error handling to message slicing in interact endpoint
Browse files
app.py
CHANGED
|
@@ -90,7 +90,8 @@ async def interact(request: InteractRequest):
|
|
| 90 |
this would connect to the OpenClaw agent system.
|
| 91 |
"""
|
| 92 |
try:
|
| 93 |
-
|
|
|
|
| 94 |
|
| 95 |
# Placeholder response - in production, this would call the agent brain
|
| 96 |
return InteractResponse(
|
|
|
|
| 90 |
this would connect to the OpenClaw agent system.
|
| 91 |
"""
|
| 92 |
try:
|
| 93 |
+
msg_preview = request.message[:100] if len(request.message) > 100 else request.message
|
| 94 |
+
logger.info(f"Interact request: {msg_preview}...")
|
| 95 |
|
| 96 |
# Placeholder response - in production, this would call the agent brain
|
| 97 |
return InteractResponse(
|