<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lattex.git/.gitignore, branch v0.3.8</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.blackhao.com/lattex.git/'/>
<entry>
<title>Fix OT sync corruption: match Overleaf ShareJS ack/echo handling</title>
<updated>2026-03-18T08:06:32+00:00</updated>
<author>
<name>haoyuren</name>
<email>13851610112@163.com</email>
</author>
<published>2026-03-18T08:06:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.blackhao.com/lattex.git/commit/?id=9b5256718c2117511f0253a656bb8cff7410b92a'/>
<id>9b5256718c2117511f0253a656bb8cff7410b92a</id>
<content type='text'>
The server broadcasts otUpdateApplied (with ops) to ALL clients including
the sender. Our bridge was treating its own echoed ops as remote ops and
re-applying them, causing text duplication (e.g. "simulatorimulator").

Rewrite OT handling to match Overleaf's ShareJS _onMessage pattern:
- ACK = no ops OR meta.source matches our publicId (own echo)
- REMOTE = ops from a different source
- ACK path calls onAck() without re-applying ops
- OtClient silently drops duplicate acks in synchronized state
- OtClient drops stale remote ops (version &lt; current)
- Remove pendingEchos counter in favor of meta.source detection

Also: refresh MCP comment contexts on new-comment/delete-thread events,
add Overleaf reference repo to .gitignore.

Co-Authored-By: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The server broadcasts otUpdateApplied (with ops) to ALL clients including
the sender. Our bridge was treating its own echoed ops as remote ops and
re-applying them, causing text duplication (e.g. "simulatorimulator").

Rewrite OT handling to match Overleaf's ShareJS _onMessage pattern:
- ACK = no ops OR meta.source matches our publicId (own echo)
- REMOTE = ops from a different source
- ACK path calls onAck() without re-applying ops
- OtClient silently drops duplicate acks in synchronized state
- OtClient drops stale remote ops (version &lt; current)
- Remove pendingEchos counter in favor of meta.source detection

Also: refresh MCP comment contexts on new-comment/delete-thread events,
add Overleaf reference repo to .gitignore.

Co-Authored-By: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Initial commit: ClaudeTeX - LaTeX editor with Overleaf sync</title>
<updated>2026-03-11T23:16:45+00:00</updated>
<author>
<name>haoyuren</name>
<email>13851610112@163.com</email>
</author>
<published>2026-03-11T23:16:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.blackhao.com/lattex.git/commit/?id=ebec1a1073f9cc5b69e125d5b284669545ea3d9f'/>
<id>ebec1a1073f9cc5b69e125d5b284669545ea3d9f</id>
<content type='text'>
Features:
- Electron + React + TypeScript app with Cosmic Latte theme
- CodeMirror 6 editor with LaTeX syntax highlighting
- PDF preview with pdf.js, zoom controls, SyncTeX double-click jump
- File tree with context menu (new/rename/delete/reveal)
- Overleaf Git clone with token auth + macOS Keychain storage
- Git pull/push sync for Overleaf projects
- Embedded terminal (xterm.js + node-pty) with Claude CLI integration
- LaTeX compilation via latexmk with auto package install detection
- Structured compile log (errors/warnings) with click-to-navigate
- Main document setting (auto-detect or right-click to set)
- Custom modal system (input/confirm/alert)
- Resizable panel layout (file tree | editor | PDF + terminal)

Co-Authored-By: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Features:
- Electron + React + TypeScript app with Cosmic Latte theme
- CodeMirror 6 editor with LaTeX syntax highlighting
- PDF preview with pdf.js, zoom controls, SyncTeX double-click jump
- File tree with context menu (new/rename/delete/reveal)
- Overleaf Git clone with token auth + macOS Keychain storage
- Git pull/push sync for Overleaf projects
- Embedded terminal (xterm.js + node-pty) with Claude CLI integration
- LaTeX compilation via latexmk with auto package install detection
- Structured compile log (errors/warnings) with click-to-navigate
- Main document setting (auto-detect or right-click to set)
- Custom modal system (input/confirm/alert)
- Resizable panel layout (file tree | editor | PDF + terminal)

Co-Authored-By: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
