Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 923509d

Browse filesBrowse files
xiaoju111astdrc
andauthored
fix(slash): await load_agents_md in /init command to prevent coroutine warning (MoonshotAI#873)
Co-authored-by: Richard Chien <stdrc@outlook.com>
1 parent 22412c5 commit 923509d
Copy full SHA for 923509d

1 file changed

+1-1Lines changed: 1 addition & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/kimi_cli/soul/slash.py‎

Copy file name to clipboardExpand all lines: src/kimi_cli/soul/slash.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async def init(soul: KimiSoul, args: str):
4040
tmp_soul = KimiSoul(soul.agent, context=tmp_context)
4141
await tmp_soul.run(prompts.INIT)
4242

43-
agents_md = load_agents_md(soul.runtime.builtin_args.KIMI_WORK_DIR)
43+
agents_md = await load_agents_md(soul.runtime.builtin_args.KIMI_WORK_DIR)
4444
system_message = system(
4545
"The user just ran `/init` slash command. "
4646
"The system has analyzed the codebase and generated an `AGENTS.md` file. "

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.