AOSSIE-Org / AOSSIE-Org/DebateAI

[BUG]: Fix missing fmt.Sprintf argument in debate bot opening-statement prompt

オープン 初心者向け
#491 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
TypeScript
スター
84
フォーク
198
平均マージ
2日 19時間
マージ済み PR(30日)
30

説明

### Bug Description

The opening-statement prompt in backend/services/debatevsbot.go contains 13 %s format placeholders but supplies only 12 arguments to fmt.Sprintf.

This causes Go’s vet check to fail and may insert the formatting artifact %!s(MISSING) into prompts sent to the Gemini model. As a result, the AI receives malformed instructions, potentially reducing the quality of its opening statements.

### Steps to Reproduce

1. Clone and open the DebateAI repository.

2. Navigate to the backend directory:
cd backend

3. Run the services test command:
go test ./services

4. Observe the following error:
services/debatevsbot.go:191:4: fmt.Sprintf format %s reads arg #13, but call has 12 args
FAIL arguehub/services

5. Inspect the opening-statement fmt.Sprintf call in backend/services/debatevsbot.go and confirm that the format string has more placeholders than supplied arguments.

### Logs and Screenshots

Image

Image

### Environment Details

_No response_

### Impact

Medium - Feature works but has issues

### Code of Conduct

- [x] I have joined the [Discord server](https://discord.gg/hjUhu33uAn) and will post updates there
- [x] I have searched existing issues to avoid duplicates

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Open backend/services/debatevsbot.go and inspect the opening-statement fmt.Sprintf call around the reported line, comparing its 13 placeholders with the supplied arguments. Run cd backend && go test ./services; done means the format-check failure is resolved and the services tests pass without a missing-format artifact.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
go
領域
backend
issue の種類
バグ
難易度
1/5
見積もり時間
1時間未満
活発さ
活発
明瞭さ
明確に書かれている
初心者へのやさしさ
90/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。