qwen-code/docs/developers/examples
wenshao cdaa760f5c docs(serve): update daemon-client-quickstart for §02 single-workspace
Round-3 review caught that the SDK example doc was the only one of the
three serve-related docs that the §02 refactor didn't touch. Updated:

- Boot log example now shows the `, workspace=/path/to/your-project`
  suffix that `runQwenServe` emits after the §02 changes.
- The "Hello daemon" example now reads `caps.workspaceCwd` off
  `/capabilities` and passes it back as `workspaceCwd` on session
  creation — illustrating the documented pre-flight pattern, not a
  hand-written literal that may not match the daemon's actual bind.
- Shared-session example makes the prerequisite explicit: the daemon
  must be bound to `/work/repo` (via `--workspace` or `cd`); under §02
  two clients can only share a session if they're both hitting a
  daemon already bound to that workspace.
- New "Workspace mismatch" section shows how to handle the
  `400 workspace_mismatch` error class: catching `DaemonHttpError`,
  branching on `body.code`, surfacing `boundWorkspace` /
  `requestedWorkspace` for the operator. This is a new error
  class SDK consumers' error handlers should branch on.

No code changes; docs only.
2026-05-13 19:37:33 +08:00
..
daemon-client-quickstart.md docs(serve): update daemon-client-quickstart for §02 single-workspace 2026-05-13 19:37:33 +08:00
proxy-script.md refactor: unify sandbox configuration naming and improve telemetry config 2026-02-11 11:08:15 +08:00