Commit 23c96e1
fix(session): launch Python agents via
The session daemon spawned Python agents with `python <entry> console
--connect-addr <addr>`, which routes through the legacy cli.run_app() click
CLI. That CLI has no --connect-addr option, so the agent exited with status 2
before connecting and the Session E2E test failed ("agent exited before
connecting: exit status 2").
The merge of main into this branch kept #868's direct-entry buildAgentCommand
and dropped main's `python -m livekit.agents SUBCOMMAND ENTRYPOINT FLAGS`
invocation, where --connect-addr actually lives. Restore the module
invocation for the Python branch (Node keeps direct-entry, which is its only
console entrypoint). Verified end to end against livekit-agents 1.6.4 with the
echo-agent fixture.
Co-authored-by: Cursor <cursoragent@cursor.com>python -m livekit.agents
1 parent d15ec7c commit 23c96e1
1 file changed
Lines changed: 18 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | | - | |
| 224 | + | |
226 | 225 | | |
227 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
228 | 231 | | |
229 | 232 | | |
230 | 233 | | |
| |||
248 | 251 | | |
249 | 252 | | |
250 | 253 | | |
251 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
252 | 258 | | |
253 | 259 | | |
254 | | - | |
255 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
256 | 268 | | |
257 | 269 | | |
258 | 270 | | |
| |||
0 commit comments