fix: move setup_matrix after compose up, use Python for .env writes

- Critical: setup_matrix now runs after docker compose up -d so Dendrite
  is actually running when provisioning is attempted
- Minor: replace sed with Python for .env credential writes to avoid
  delimiter collisions with opaque Matrix access tokens
- Info: update matrix_listener.sh header to mention container mode

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
openhands 2026-03-25 00:35:20 +00:00
parent b86edd7e5d
commit a0cdf87a21
2 changed files with 13 additions and 5 deletions

View file

@ -12,7 +12,8 @@
# Thread reply to [vault] message → APPROVE/REJECT dispatched via vault-fire/vault-reject
# Thread reply to [action] message → injected into action tmux session
#
# Run as systemd service (see matrix_listener.service) or manually:
# In compose mode, started by docker/agents/entrypoint.sh as a background process.
# On bare metal, run as systemd service (see matrix_listener.service) or manually:
# ./matrix_listener.sh
set -euo pipefail