Skip to content

Vary Lexi tutor response formats - #124

Merged
pirajoke merged 1 commit into
mainfrom
codex/varied-tutor-responses
Sep 9, 2026
Merged

Vary Lexi tutor response formats#124
pirajoke merged 1 commit into
mainfrom
codex/varied-tutor-responses

Conversation

@pirajoke

@pirajoke pirajoke commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • render ordinary dialogue as natural prose instead of universal emoji chrome
  • use distinct, bounded markers for translation, correction, grammar, pronunciation, practice, and progress
  • activate the reviewed Mirror v9 prompt and prevent provider/renderer emoji stacking

Tests

  • .venv/bin/python -m unittest discover -s tests -v (1012 passed, 3 skipped)
  • .venv/bin/python -m compileall -q .
  • git diff --check

Safety

  • no schema, pricing, credits, dialogue-memory, voice, or database changes
  • no learner identifiers or response content added to logs

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-09T05:39:41.342701Z d7b6dc1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pirajoke
pirajoke merged commit 953df3c into main Sep 9, 2026
1 check passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d7b6dc12ad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread mydictionary/ai_tutor.py
def clean(value: str) -> str:
plain = re.sub(r"```[A-Za-z0-9_-]*", "", str(value))
plain = re.sub(r"[💡📌👉]", "", plain)
plain = _MIRROR_APPLICATION_SECTION_MARKER_PATTERN.sub("", plain)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve marker glyphs when they are answer content

Because this substitution is unanchored and runs on every answer, language item, example, and next step, it removes the newly added glyphs even when they are the subject of the lesson rather than section decoration. For example, a translation request such as “Что значит ✅?” can legitimately return in both answer_ru and the language-item target, but both occurrences are deleted and the learner sees an incomplete explanation. Strip these markers only where they are acting as provider-supplied section prefixes, or otherwise preserve literal glyph content.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant