service logs --follow polls every 2 s instead of using the platform's WebSocket stream

Open
#301 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
cli, networking

Research direction

Start with packages/cli/src/commands/service/logs.ts and read the shelved design in .drive/projects/prisma-cli-v8/assets/engine/websocket-transport-design.md. Trace how the command currently polls and how engine authentication is exposed through ctx.api. Done means service logs --follow uses an engine-owned WebSocket stream without building its own authenticated URL.

Written by the indexing model from the issue text.

Description

service logs --follow polls every 2 seconds (packages/cli/src/commands/service/logs.ts). The Management API streams deployment logs over a WebSocket, but the engine's ctx.api is an HTTP client, and a command must not build its own authenticated URL. A design for an engine-owned WebSocket transport was written and shelved: https://github.com/prisma/prisma-cli/blob/4356b361adf7044bae59aa0bc70340eda89fdad6/.drive/projects/prisma-cli-v8/assets/engine/websocket-transport-design.md

Recorded in the prisma-cli-v8 project ledger, which is being deleted at project close-out: https://github.com/prisma/prisma-cli/blob/4356b361adf7044bae59aa0bc70340eda89fdad6/.drive/projects/prisma-cli-v8/deferred.md#L351

🤖 Generated with Claude Code

Dominant language
TypeScript
Stars
26
Forks
4
Avg merge
12h 11m
Merged PRs (30d)
38

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from prisma/prisma-cli

All issues in prisma/prisma-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.