跳到正文
DEV Community· 啦啦啦种太阳·· 22 分鐘前AI 評分54

DeepSeek Harness Web UI 伺服器已啟動,為何輸入框仍無法使用?

Your DeepSeek Harness server is running — so why is the input box dead?

AI 導讀

DeepSeek Harness Web UI 的輸入框須在選取工作區後才可使用,即使伺服器已成功啟動亦然。文章依次説明啟動伺服器、儲存 DeepSeek API key、選擇工作區及發送首個任務,並指出儲存 API key 後毋須重啟伺服器。文章亦區分輸入框停用、模型請求失敗與伺服器啟動失敗,建議先確認卡住的階段及錯誤訊息再排查。

正文

The first thing that surprises people about the DeepSeek Harness Web UI is that a running server is not the same as a usable session. You can have dsh web printing a healthy local URL, open it, and still find yourself unable to type anything. That is not a broken install. It is a missing workspace.

This walks the gap between "the server is up" and "the agent is doing something useful" — the four steps in between, what each one actually gates, and how to tell which stage you are stuck at.

Step one: start the server and read what it prints

The Web UI guide assumes the server is already running. The repository README is where the launch itself lives: install Node.js, then from the project directory you intend to work in, run:

npx @deepseek-ai/dsh web

By default that serves on http://127.0.0.1:3080 and opens your default browser. The command prints the URL it is bound to — use what it prints rather than assuming the default, because your installation or flags may not match the documentation's example.

Three details in that sentence matter more than they look:

  • SSH changes who owns the address. A remote launch prints the host URL instead of opening a browser, and the SSH client or editor owns the forwarded local address. Those are two different strings; do not paste the server's host address into a browser that expects the forwarded one.
  • --no-open suppresses the browser launch without changing anything else. Useful when you want the URL but not a window.
  • The directory you start from is the default filesystem location. That sounds like it selects the workspace. It does not — see step three.

Start the server, configure a model, select a workspace, and send a task

Step two: save the model key (no restart needed)

Open the printed URL while the process keeps running, then go to Settings → Models, enter a DeepSeek API key, and save.

The guide says the model route becomes usable immediately — saving the key is not a change that requires restarting the server. Keep that in mind, because it is the reason a later problem is probably not "I need to restart."

Step three: choose the workspace, and mean it

Click Choose workspace, add the project directory you started dsh from, and select it.

This is the step people skip, and it is the one that explains the disabled input. The session composer is unavailable until a workspace is selected. A fresh Web UI starts with no workspace even when you launched it from inside a project directory — starting in the project directory and selecting the workspace are related, but they are separate steps.

Step four: send a bounded first request

Start a session and send the guide's example:

Summarize this repository and identify its main packages.

Then read the response and the tool activity. If the active permission policy requires approval for an operation, the UI asks before it proceeds — decide based on the actual requested action, not on how routine the request sounded.

The example is a deliberately conservative first task. It gives the agent a concrete subject and a deliverable you can check, without assuming it will edit files. If the summary comes back too broad, follow up with a particular directory or a specific question rather than starting over.

The guide also describes editing files, running commands, delegating work, and maintaining a plan as possible agent capabilities. It does not promise every deployment enables the same tools — so treat that list as "what this class of tool can do," not as a checklist the UI owes you.

The four gates, side by side

Step Expected result If it is missing
Start server A URL is printed Inspect the startup output
Save model key Model route becomes usable Recheck the setting and key
Select workspace Composer becomes available Add and select the project directory
Send task Agent begins the session Check the selected workspace and model
Review approval UI asks when policy requires it Read the requested operation and policy

The value of laying it out this way is diagnostic. An unavailable input box is not, by itself, evidence that your key is invalid — the guide requires selecting a workspace before the composer appears, and it does not require a restart after saving the key. Those are two independent conditions, so check them independently.

What a good first request contains

Three things:

  1. The outcome you want — a summary, an entry-point map, an explanation of one package.
  2. The relevant project area, especially in a repository too large to summarize usefully in one pass.
  3. Any constraints that matter to you — read-only for now, stay inside a directory, cite files.

Note what the example does not require: knowing an internal tool name. The prompt is a session message, not a terminal command. You describe the intent and let the agent choose how to inspect the workspace, then judge the action it proposes.

A genuinely useful first session teaches you two things at once — the repository, and how this application displays work and asks for approval.

Where it stalls, stage by stage

Browser did not open. Use the printed URL. The README documents this for SSH and --no-open; nothing is broken.

Composer is disabled in a fresh UI. Select the workspace as above. This is the single most common cause.

A model request cannot proceed. Verify the saved model configuration. The quickstart documents saving the key but does not provide a universal diagnosis for every provider error. For other providers, the model configuration guide covers the additional cases.

Startup failed before any URL was printed. Preserve the terminal error. Required plugin activation failures can produce a full report, and the startup diagnostics guide explains where to find it — and what it will not tell you.

The point of separating these: a disabled composer, a model error, and a server startup failure occur at different stages. Capture the stage and the exact message before you start changing settings, or you will spend the session fixing something that was never wrong.

Do not mix the npm path with the source path

The README documents a second way to run this: clone the repository, install dependencies, run pnpm run build, then start with pnpm dsh web. The build prepares artifacts; the source launch reuses them without rebuilding.

That is a different setup from the npx example. Choose the path that matches your installation and do not blend the instructions — in either case, wait for the printed address before beginning the UI steps.

Limits and safety boundaries

Selecting a workspace is a necessary UI step, not a safety guarantee. The agent may read and edit files and run commands, subject to the tools and policy in your deployment. Review any approval request together with the task's possible effects.

Two practical rules:

  • Do not paste API keys or private data into the conversation. Model settings are the intended place for the key.
  • A default local URL does not describe a secure public deployment. 127.0.0.1 is a local default; exposing the server is a separate situation with its own guidance.

Terms, briefly

  • Web server — the process serving the browser interface and printing its access URL.
  • Model route — the configured path used to send model requests.
  • Workspace — the selected project directory associated with the session.
  • Composer — the input used to send a session message; it requires a selected workspace.
  • Permission policy — the active rules that determine whether an operation requires approval.

If you want the version of this with the full step-by-step and the surrounding setup, the original is here: DeepSeek Harness: Start Your First Web UI Task.

Originally published at https://dsh-plugin.com/blog/start-my-first-task-in-the-web-ui

來源:DEV Community · dev.to