User Feedback Plugin
Adds like/dislike on each assistant turn, with an optional comment after a dislike. Admins can review the collected feedback.
Enabled in the shipped default config.
Configuration
plugins:
- module: codumentor.plugins.user_feedback
class: UserFeedbackPlugin
args:
enabled: true
| Arg | Type | Default | Description |
|---|---|---|---|
enabled | bool | true | Declared in YAML. To actually turn the feature off, omit this plugin from plugins: — enabled: false does not hide the controls or the admin page. |
Usage
Users: Like and dislike sit in the action row under each assistant reply (next to copy).
- Like saves immediately. Click again to undo.
- Dislike opens a short form: optional comment ("What should I have done differently?", max 2000 characters) and Allow human review of this conversation (checked by default). Send stores the dislike; Cancel closes the form without saving. Clicking dislike again when it is already active removes it.
- Reopening a turn shows the feedback already given. Changing it updates the same record.
Admins: The User Feedback card on the admin page shows total / likes / dislikes. Opening it goes to the feedback admin page: filter (all / likes / dislikes), a paginated table (type, comment, conversation, turn, review consent, time), and CSV export. Requires admin:*. When the user allowed review, the conversation id is a link to that turn; otherwise it is plain text.
Hook for other plugins
After a like or dislike is saved, and after one is removed, the plugin fires
onUserFeedback on the plugin bus (agent is None):
| payload | {conversation_id, user_id, turn_id, assistant_message_id, feedback_type, comment} — feedback_type is like, dislike, or null after a removal |
| ctx | user_id, conversation_id, and the app's live ui_event_store / ui_broadcaster (a thumbs arrives outside any turn) |
Notification only: the return value is ignored and a failing subscriber never
fails the request. Subscribe with bus.on("onUserFeedback", …) — the hook name
is the whole contract; do not import this plugin. Defined in
plugins/user_feedback/hooks.py. Episodic Memory's
immediate learning path is the first subscriber: a dislike opens a learning
card in the conversation.
Notes
- Dislike comments are optional.
- Feedback is stored in
user_feedback.sqlite3under the instance data directory (CODUMENTOR_DATA_DIR, or./data). - Separate from Bug Report, which files a Redmine ticket from the header menu.