Documentation on the --ui-server command line #1114
-
|
I was trying to determine if I can share a copilot CLI terminal session with another process that is running a python script with the copilot CLI SDK. The example docs hint at such a feature called the Anyone have more documentation on how to access this feature? or maybe it would not actually work with the use case I described? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
If you only need a stable port for another Python process, use the documented headless server path rather than copilot --headless --port 4321Then connect from Python with: from copilot import CopilotClient, ExternalServerConfig
client = CopilotClient(ExternalServerConfig(url="localhost:4321"))That matches
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks at @cookesan that put me on the right path. The
Seems to at least allow for the client to connect (there's some difficulties with how the sharing works that I'll need to work out, but it is at least connecting). |
Beta Was this translation helpful? Give feedback.
Thanks at @cookesan that put me on the right path. The
--portnor the--headless/--ui-servershow up in thecopilot --help.--ui-server --port #Seems to at least allow for the client to connect (there's some difficulties with how the sharing works that I'll need to work out, but it is at least connecting).