Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[bug] executionProfile 可能为 undefined 导致 TypeError

Closed Beginner friendly
#83 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
typescript
Domain
cli

Research direction

Start by tracing the toRunMetadata(context) and AgentStateMachine.transition() entry points, focusing on where executionProfile.workspaceMode is read. Reproduce the issue with a harness context lacking executionProfile, then verify that both entry points complete without a TypeError and preserve the expected undefined value.

Written by the indexing model from the issue text.

Description

status/needs-triage type/bug
step-realtime-cli 版本

1.0.0

Node 版本 & OS

Node 24.16.0 / Linux (Fedora 44)

复现步骤
  1. 创建不含 executionProfile 的 harness context
  2. 调用 toRunMetadata(context) 或 AgentStateMachine.transition() 时传入该 context
  3. 运行时抛出 TypeError: Cannot read properties of undefined (reading 'workspaceMode')
期望行为

executionProfile 为 undefined 时应安全回退(例如 workspaceMode: undefined),而非抛 TypeError

实际行为

程序因 TypeError 崩溃

日志 / 堆栈

截图(可选)

No response

自检
  • 我已搜索 existing issues,确认这不是重复问题
  • 我已阅读 CONTRIBUTING.md
Dominant language
TypeScript
Stars
54
Forks
20
Avg merge
4h 1m
Merged PRs (30d)
12

Contributor guide

Open the contributing guide

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 stepfun-ai/Step-Code

All issues in stepfun-ai/Step-Code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.