Fix workspace bucket fallback + typing error logging
This commit is contained in:
@@ -55,8 +55,9 @@ class TelegramAdapter:
|
|||||||
'chat_id': self.chat_id,
|
'chat_id': self.chat_id,
|
||||||
'action': 'typing',
|
'action': 'typing',
|
||||||
})
|
})
|
||||||
except Exception:
|
except Exception as e:
|
||||||
pass
|
import traceback
|
||||||
|
print(f'[telegram] send_typing failed: {e}\n{traceback.format_exc()}')
|
||||||
|
|
||||||
def edit(self, message_id: str, text: str) -> None:
|
def edit(self, message_id: str, text: str) -> None:
|
||||||
"""Edit an existing message in-place."""
|
"""Edit an existing message in-place."""
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ def _get_s3():
|
|||||||
|
|
||||||
|
|
||||||
def get_bucket() -> str:
|
def get_bucket() -> str:
|
||||||
return os.environ['WORKSPACE_BUCKET_NAME']
|
return os.environ.get('WORKSPACE_BUCKET_NAME', 'agent-claw-workspace-495395224548')
|
||||||
|
|
||||||
|
|
||||||
def read_file(path: str) -> str:
|
def read_file(path: str) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user