In the previous version, you had the bug when opening the log of different repositories using cmdserver. When you open `*monky-log*' for the first time, that's fine. But when you open `*monky-log*' for another repository, you cannot see its commits (diffs and messages). This is because monky tried to read data from the first repository which is specified by the buffer local variable `monky-root-dir'.
see M-x list-coding-systems
Essentially there are only two changes: 1. unpack text using spec `((text str ,(length text))) 2. decode inserted text using decode-coding-region Other changes are needed to return the result code as before.