Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
fix(control): a --flag no longer swallows the next --flag, and --flag=value works
enesb7f19f64bfd6
diff --git a/src/main/canvas-control-core.ts b/src/main/canvas-control-core.tsindex 831ee5333..3b233f94f 100644--- a/src/main/canvas-control-core.ts+++ b/src/main/canvas-control-core.ts@@ -254,10 +254,34 @@ nt_i=0while [ "$nt_i" -lt "$nt_count" ]; dont_a="$1"; shift; nt_i=$((nt_i + 1))case "$nt_a" in+ --*=*)+ # \`--flag=value\`: the only unambiguous form, and the ONLY way to pass a value that itself+ # starts with \`--\`. Split on the FIRST \`=\` so a value may contain more of them.+ nt_k=\${nt_a#--}+ nt_v=\${nt_k#*=}+ nt_k=\${nt_k%%=*}+ set -- "$@" --data-urlencode "arg.$nt_k=$nt_v"+ ;;--*)+ # PEEK before consuming. The old code took the next token unconditionally, so \`--a --b v\`+ # parsed as arg.a=--b plus a silently dropped \`v\`, and a valueless flag was expressible only+ # as the LAST token on the line. Both failures were silent: the server saw a well-formed+ # request carrying nonsense, and answered about the wrong flag.+ #+ # The peek matches \`--\` and NOT a single \`-\`, so a negative number stays a value.+ #+ # The cost, deliberately taken: a value that legitimately begins with \`--\` is no longer+ # consumed positionally. \`--text --oops\` now sends arg.text= plus arg.oops=. Write it as+ # \`--text=--oops\`, which the branch above exists for and which was previously unexpressible+ # in either direction.nt_k=\${nt_a#--}nt_v=""- if [ "$nt_i" -lt "$nt_count" ]; then nt_v="$1"; shift; nt_i=$((nt_i + 1)); fi+ if [ "$nt_i" -lt "$nt_count" ]; then+ case "$1" in+ --*) : ;;+ *) nt_v="$1"; shift; nt_i=$((nt_i + 1)) ;;+ esac+ fiset -- "$@" --data-urlencode "arg.$nt_k=$nt_v";;*)