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

中断消息提示错误

Open
#99 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
api

Research direction

Start by reproducing the subscription flow shown in the issue, especially the CONVERSATION_CHAT_IN_PROGRESS branch and its cancelSession call. Inspect how the cancellation response is produced and logged, then confirm the interruption message matches the expected behavior; the issue does not name a source file or test.

Written by the indexing model from the issue text.

Description

stream.subscribeOn(Schedulers.io())
.subscribe(
event -> {
if (ChatEventType.CONVERSATION_CHAT_IN_PROGRESS.equals(event.getEvent())) {
log.info("接收到的消息:{}", event.getChat());
log.info("GitHub测试终端会话");
CancelChatResp cancelChatResp = cancelSession(event.getChat().getConversationID(), event.getChat().getID());
log.info("中断信息:{}", cancelChatResp.toString());
}
if (ChatEventType.CONVERSATION_CHAT_COMPLETED.equals(event.getEvent())) {
log.info("Token usage:{}", event.getChat().getUsage().getTokenCount());
cozeAPI.shutdownExecutor();
}
},
throwable -> {
log.error("Error occurred: {}", throwable.getMessage());
},
() -> {
log.info("done");
});

Dominant language
Java
Stars
214
Forks
97
PR merge metrics
No merged PRs in 30d

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 coze-dev/coze-java

All issues in coze-dev/coze-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.