Repository navigation
Conversation
An expert manifest with `quick_prompts: []` was treated like a manifest that says nothing about cards, so the chat welcome endpoint fell back to the default card set and every such expert opened with generic cards. A `quick_prompts` list is the author's decision even when empty; only a missing or malformed value uses the defaults. This matches the existing `task_examples` empty-array behavior. Tests: tests/unit/api/test_chat_welcome_cards.py (new).
Contributor
|
This pull request was closed by a temporary author restriction. Pull requests may only be opened by:
Ask a maintainer to add your GitHub login to that allowlist, then reopen the pull request. 此 Pull Request 已被临时的作者限制自动关闭。 当前仅允许以下用户创建 PR:
如需在首次合入前贡献,请联系维护者把 GitHub 用户名加入允许名单,然后再重新打开这个 PR。 维护者可将仓库变量 |
Author
|
Allowlist request with the branch and test evidence: #3173. The change is ready; please reopen after the guard is lifted for this account. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
An expert whose workspace
manifest.jsoncarriesquick_prompts: []currently opens with the default quick cards. The welcome endpoint only treats the manifest as authorial intent when it has content, so an explicit empty list falls through todefault_welcome_payload(). That makes "this expert has no quick-start cards" impossible to express, althoughtask_examples: []already means "no cards".This change treats a
quick_promptslist as final even when it is empty. A missing or non-list value still uses the defaults.get_chat_welcomenow resolves the payload throughworkspace_welcome_payload().task_examples, the row-levelwelcome_message, and team hosts are unchanged.docs/expert-package.mdandCHANGELOG.mdupdated.Target branch
develop(feature / fix — default)Type of change
Test plan
pytest tests/unit/api/test_chat_welcome_cards.py tests/unit/api/test_chat_welcome.py -q→ 23 passedruff checkandruff format --checkon the changed filesmypy --strict src/octop/api/routers/chat/routes.py→ no issues[]→ no cards,null/ text → defaultsmake allleft to CIChecklist
CHANGELOG.md