Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

stack: functions serve fails without a TTY because the default output format is one it rejects

已关闭
#7,010 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@7ttp 已经在做这个了。

开始于 2026年10月6日。

  • #7027 来自 @7ttp —— 未关闭

评估

难度
3/5
预计耗时
半天
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript

调研方向

Search the CLI for FunctionsServeStackError and the check that output must be text or stream-json. Find where the default --output-format is chosen when stdout is not a TTY (CI, redirects). Change that default to stream-json or text so non-interactive supabase functions serve no longer errors. Confirm with a redirected run and any existing functions-serve tests.

由索引模型根据 Issue 内容生成。

描述

🐛 Bug supabase/cli
Supabase CLI version

2.119.0, macOS 26.3 (Apple silicon)

Actual output

Run without a TTY (CI step, agent sandbox, cmd > log &):

$ SUPABASE_EXPERIMENTAL_STACK=1 supabase functions serve --env-file fn.env > serve.log 2>&1
{"_tag":"Error","error":{"code":"FunctionsServeStackError","message":"Functions serve requires text or stream-json output.","suggestion":"Use --output-format stream-json for structured live output."}}

The non-TTY default output format is one functions serve refuses, so every non-interactive caller has to pass --output-format text or stream-json. The native runtime targets exactly those callers (CI runners, coding-agent sandboxes).

Expected behavior

Without a TTY, functions serve defaults to stream-json (or text) rather than failing.

I investigated this with help from an AI coding assistant (Claude Code), which also drafted this text. The results above come from real runs.

主要语言
TypeScript
星标
2.4k
派生
531
平均合并
1 天 4 小时
30 天内合并 PR
351

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

supabase/cli 的其他 Issue

查看 supabase/cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。