fix & feat: resolve user reports #1 through #8 (TTS voice & speed, modals, scrollbar, CEFR hint, SRS grammar exclusion, global word lookup)

This commit is contained in:
Antigravity committed 2026-10-08 12:37:41 +03:00
1 parent 8cffae46fa
commit 7871191c90
12 files changed
+443 -103

No files matched your search

+9 -3
View File
@@ -12,7 +12,8 @@ logger = logging.getLogger(__name__)
router = APIRouter(prefix="/api/feedback", tags=["Feedback & Bug Tracker"])
# Path to workspace memory file for seamless Antigravity AI reading
# Paths to markdown reports files for seamless Antigravity AI reading
DATA_REPORTS_FILE = Path(__file__).resolve().parent.parent.parent / "data" / "USER_REPORTS.md"
MEMORY_REPORTS_FILE = Path("/home/ai-projects/memory/USER_REPORTS.md")
@@ -97,8 +98,13 @@ def sync_reports_to_markdown(conn):
lines.append(f"- [x] **#{r['id']} {cat_emoji} ({r['created_at']})**: {r['message'].strip()} *(Страница: {r['context_url'] or 'общая'})*")
lines.append("")
MEMORY_REPORTS_FILE.parent.mkdir(parents=True, exist_ok=True)
MEMORY_REPORTS_FILE.write_text("\n".join(lines), encoding="utf-8")
content = "\n".join(lines)
for target in [DATA_REPORTS_FILE, MEMORY_REPORTS_FILE]:
try:
target.parent.mkdir(parents=True, exist_ok=True)
target.write_text(content, encoding="utf-8")
except Exception as e:
logger.debug(f"Could not write to {target}: {e}")
except Exception as e:
logger.warning(f"Could not sync reports to markdown: {e}")