feat: Paket J — Prompt-Transparenz & Prompt-Editor - #29
Merged
Conversation
Fügt einen „Prompt"-Button im Compose-Fenster hinzu, der den vollständig aufgelösten System-Prompt und die Nutzernachricht vor dem API-Call anzeigt. Der Nutzer kann beide Felder bearbeiten, bevor er auf „Senden" klickt. - app/i18n.py: 7 neue i18n-Keys in DE und EN - app/llm_service.py: build_system_prompt() (kein API-Call) + rewrite_raw() (direkter API-Call mit expliziten Prompts, ohne Preset-Logik) - app/compose_window.py: PromptEditorDialog, erweiterter _ComposeWorker (raw_system_prompt / raw_user_message), btnShowPrompt mit vollständiger State-Verwaltung (_set_busy / _sync_state), _on_show_prompt_clicked, _start_worker_raw - tests/test_llm_service.py: TestBuildSystemPrompt (11 Tests), TestRewriteRaw (6 Tests) - tests/test_compose_window.py: _FakeLLMService um build_system_prompt() und rewrite_raw() erweitert
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…ne scan The pattern OPENAI_API_KEY= in the docs example triggered the CI secret scan since PR #28. Replace with a description that conveys the same info.
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
build_system_prompt()in LLMService: Gibt den exakt gleichen Prompt zurück, den der API-Call senden würde — ohne API-Callrewrite_raw()in LLMService: Direkter API-Call mit explizit bereitgestellten Prompts, bypassed Preset-Logik vollständigcompose.btn.show_prompt,compose.prompt_preview.*)Änderungen
app/i18n.pyapp/llm_service.pybuild_system_prompt()+rewrite_raw()app/compose_window.pyPromptEditorDialog, erweiterter_ComposeWorker,btnShowPrompt,_on_show_prompt_clicked,_start_worker_rawtests/test_llm_service.pyTestBuildSystemPrompt(11 Tests),TestRewriteRaw(6 Tests)tests/test_compose_window.py_FakeLLMServiceumbuild_system_prompt()+rewrite_raw()erweitertTest plan
python -m pytest tests/→ 325 passed, 63 skipped, 0 failuresTestBuildSystemPrompt: Alle 11 Tests inkl. Invarianz (Preview == tatsächlicher API-Call)TestRewriteRaw: 6 Tests inkl. leere User-Message, API-Fehler-Wrapping, kein Custom-Terms-Append_FakeLLMServicevollständig für GUI-Tests vorbereitet🤖 Generated with Claude Code
https://claude.ai/code/session_01APzya6rVWi6Cbb54N5QCQS