-
Notifications
You must be signed in to change notification settings - Fork 61
Chat shell endpoints module and hub error migration #287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 9 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4e4676e
split deps: foundation + path/i18n for stacked PRs
steve02081504 793347c
Chat shell endpoints module and hub error migration
steve02081504 516d001
Merge branch 'master' into split/chat
steve02081504 4a10205
[CodeFactor] Apply fixes
code-factor 2d89cec
1
steve02081504 1d89fbe
1
steve02081504 a5adeff
1
steve02081504 c1e71bc
Merge branch 'master' into split/chat
steve02081504 6646885
1
steve02081504 ae943b3
1
steve02081504 9101bab
1
steve02081504 5514756
1
steve02081504 bbf4051
1
steve02081504 db46064
1
steve02081504 4fca0b8
file update~
Taromatibot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win
统一两处 MJS 异步错误边界。
这两处变更继续使用 Promise 链。项目要求异步代码统一使用
async/await,并在异步边界集中处理错误。src/public/parts/shells/chat/public/hub/banners.mjs#L170-L170: 将refreshLocalViewBanner()放入带try/catch的异步辅助函数,并等待refreshDagForkBanner()。src/public/parts/shells/chat/public/hub/messages/messageRefresh.mjs#L353-L355: 用try/catch、await import(...)和await fetchMemberReadMarkers(...)替换.then(...).catch(...)。As per coding guidelines,MJS 异步代码必须统一使用
async/await。As per path instructions,异步失败必须通过统一的
handleError(...)处理。📍 Affects 2 files
src/public/parts/shells/chat/public/hub/banners.mjs#L170-L170(this comment)src/public/parts/shells/chat/public/hub/messages/messageRefresh.mjs#L353-L355🤖 Prompt for AI Agents
Sources: Coding guidelines, Path instructions