The files an agent launch writes into its working directory, whichever way it was started: agent.open
(super::agent_open::write_agent_config_files) and the window’s Launch (writeagentconfig, picker_config::launch_files)
both render them here, so a native and a container agent, and the two entry points, share one builder.
display_name is what {{AGENT}} and {{AGENT_DISPLAY}} expand to (a launch’s instance name, or the
agent’s name); workdir_is_shared is whether other launches of the agent use the same folder.
Write one rendered config file into the working directory, the way its kind is written (ownership-aware,
exists-guarded, merged, or plainly); a path the workdir refuses is skipped with a warning.