You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
azd ai agent files upload binds its positional argument to the file path ([file]), while the sibling command azd ai agent invoke binds its positional to the agent name ([agent]). Users -- and LLMs reading the help text -- mirror the invoke pattern and run files upload <agent> -f <file>, which silently binds <agent> to the file path. With multiple azure.ai.agent services declared and no -n/--agent-name, the agent is ambiguous and the command renders the interactive picker, which hangs silently in non-TTY contexts (see #8584).
azd ai agent files upload my-agent -f ./contract.txt
Observed
Hangs indefinitely (observed ~12 minutes before a manual kill) with no output, no spinner, no CPU activity. pstree / wchan shows the extension child (azure-ai-agents-... files upload my-agent -f ./contract.txt) blocked in do_epoll_wait on the local gRPC pipe back to the parent azd; no Azure sockets are ever opened. The extension has rendered a service picker into a stdout that is piped, so it is invisible. Sending Enter does nothing; only Ctrl+C recovers.
Root cause: my-agent is bound to the file positional, so the agent name has to come from -n/--agent-name. With multiple services and no -n, auto-detect fails and the picker fires.
Correct invocation (works, ~2s)
azd ai agent files upload -f ./contract.txt -n my-agent
Expected
Smallest fix: when the files upload positional resolves to a path that does not exist but matches an agent name in azure.yaml, fail fast with a hint: did you mean: azd ai agent files upload -n my-agent -f <file>?
instead of falling through to "auto-detect agent (failed) -> render picker".
Better: make the agent the positional for files upload too, for consistency with invoke.
Tooling that wraps azd ai agent files upload (CI pipelines, agent harnesses, runbooks) hangs forever with no diagnosable signal. The correct flag form works in ~2s; the trap is purely the flipped positional plus the silent picker.
Environment
azd 1.25.4; azure.ai.agents 0.1.36-preview (also reproduced on 0.1.38-preview)
Summary
azd ai agent files uploadbinds its positional argument to the file path ([file]), while the sibling commandazd ai agent invokebinds its positional to the agent name ([agent]). Users -- and LLMs reading the help text -- mirror theinvokepattern and runfiles upload <agent> -f <file>, which silently binds<agent>to the file path. With multipleazure.ai.agentservices declared and no-n/--agent-name, the agent is ambiguous and the command renders the interactive picker, which hangs silently in non-TTY contexts (see #8584).Repro
Multi-service project (>= 2
azure.ai.agentservices), deployed remote agent:Observed
Hangs indefinitely (observed ~12 minutes before a manual kill) with no output, no spinner, no CPU activity.
pstree/wchanshows the extension child (azure-ai-agents-... files upload my-agent -f ./contract.txt) blocked indo_epoll_waiton the local gRPC pipe back to the parentazd; no Azure sockets are ever opened. The extension has rendered a service picker into a stdout that is piped, so it is invisible. Sending Enter does nothing; onlyCtrl+Crecovers.Root cause:
my-agentis bound to the file positional, so the agent name has to come from-n/--agent-name. With multiple services and no-n, auto-detect fails and the picker fires.Correct invocation (works, ~2s)
Expected
files uploadpositional resolves to a path that does not exist but matches an agent name inazure.yaml, fail fast with a hint:did you mean: azd ai agent files upload -n my-agent -f <file>?instead of falling through to "auto-detect agent (failed) -> render picker".
files uploadtoo, for consistency withinvoke.Impact
Tooling that wraps
azd ai agent files upload(CI pipelines, agent harnesses, runbooks) hangs forever with no diagnosable signal. The correct flag form works in ~2s; the trap is purely the flipped positional plus the silent picker.Environment
azure.ai.agents0.1.36-preview (also reproduced on 0.1.38-preview)azure.yaml, 6azure.ai.agentservice blocks, shared.azure/<env>/