845 B
845 B
Task: Enhance AI Communication Patterns
Objectives
- Integrate
agent-prompt.mjsfor dynamic system prompts - Implement
fetchWithRetryfor robust API calls - Enhance TUI message rendering with
message-renderer.mjsformatters
Progress
- Create Implementation Plan
- Backup
qwen-oauth.mjsandbin/opencode-ink.mjs - Update
qwen-oauth.mjs:- Import
fetchWithRetry - Add
systemPromptsupport tosendMessage - Wrap
sendVisionMessagewith retry logic
- Import
- Update
bin/opencode-ink.mjs:- Import
getSystemPromptandfetchWithRetry - Refactor
handleSubmitto use dynamic system prompt - Update
callOpenCodeFreeto usefetchWithRetry - Apply
formatSuccess/formatErrorto file save output
- Import
- User Verification of functionality