On this page

Troubleshooting

Fixes for the problems people and agents meet in Monton, from a sign-in that doesn't stick to a push that conflicts or an email that doesn't arrive.

View as Markdown

In each entry, we start with what you see, then say why it happens and what to do. If yours isn't here, search the docs or email us.

I sign in and end up back at the start

If you sign in and land back on Monton's home page, or you see "Sign-in didn't stick", check that you allow cookies for monton.dev, and turn off any extension that blocks them for this site. Then sign in again.

If your agent keeps asking you to sign in, sign in to monton.dev in your browser once with the same account, then connect the agent again.

My agent's access expired or someone revoked it

Your agent sees one of these messages, or you see that you need to connect it to Monton again:

  • "The access token has expired." Claude, ChatGPT and Claude Code usually renew their access on their own. When one doesn't, connect it again from its settings.

  • "You revoked this agent on Monton's Agents page. Restore it there to connect again." Someone revoked the agent on the Agents page. Choose Restore there, and connect again only if it still can't reach Monton.

  • "No Monton account matches this sign-in." You approved the agent with an account that has never signed in to Monton. Sign in to the web app with that account first, or connect the agent again with the account you use.

A token you made on the Agents page lasts as long as you chose when you made it: 30 days, 90 days, a year, or with no expiry. When it expires, or someone revokes it, we refuse it from the next request on, and nobody can bring it back: make a new token and give it to the client.

In the CLI, the same error has the code not_signed_in. Run monton login to sign in again; an agent runs monton login --json and sends you the link and code from the first line. See Sign in in the CLI reference.

The CLI's sign-in link doesn't connect

When you run monton login, we show a link and a short code. You can open the link on any device where you're signed in to Monton, such as your phone, even when you run the CLI on another computer or your agent runs it in its shell. On the page, check two things before you choose Connect: that the code matches the one in your terminal or your chat with your agent, and that "You're signed in as" names the account you want the CLI to use.

  • "This sign-in is over": someone already connected the CLI or refused, or nobody answered within 10 minutes. Run monton login again and open the new link. In the terminal, we stop monton login with the code timeout or refused.

  • "This sign-in link isn't complete": the address you opened lacks a part of the link. Run monton login again and copy the whole link.

  • The CLI acts for the wrong person: you opened the link in a browser signed in to someone else's account. Run monton logout, sign in to the right account in the browser, then run monton login again. Run monton whoami to check.

An agent that signs the CLI in sends you the link and code only in your private chat, and waits while you connect. Never connect from a link that someone else sent you: the CLI would act for you in your workspaces.

My agent can't see a workspace

Ask your agent to call list_workspaces. If a workspace you can reach is missing, open Workspace access for that agent on the Agents page and check which workspaces you gave it. If you connected it with another account, remove the connector or agent and reconnect while you're signed in to the right account.

If someone shared only a folder or a doc with you, your agent sees only that. If you revoked the agent on the Agents page, restore it there; for a token you made there, make a new one.

My agent can't find a doc

Your agent says a doc isn't there, or doesn't list it, though you see it in the web app.

  • Someone archived it. We leave archived docs out of get_tree and search, and people find them under Archived, in the workspace menu at the top of the web app's sidebar. Your agent still reads one with read_doc by its path, finds them with get_tree and archived: true, or searches them with include_archived.

  • Someone shared only part of the workspace with you. As a guest, you and your agent see only the folders and docs someone shared with you. Ask a member of the workspace to share the doc or its folder.

  • It's in another workspace. Ask your agent to call search without a workspace, which searches every workspace you can reach.

  • Someone renamed, moved or deleted it. Ask your agent to search for its text. People can bring back a deleted doc from Recently deleted in the web app, and an agent can with restore_doc.

My agent says it can't change a doc

We refuse the change, change nothing, and say why:

  • Your role doesn't allow it. We name your role in the error. A viewer may only read, and a commenter may read and comment. Ask an owner of the workspace to change your role.

  • The doc is archived. Nobody can change an archived doc or its comments. Unarchive it in the web app, or ask your agent to call unarchive_doc, then make the change.

  • Not shared with you. A guest's agent may create, move, delete or archive docs only inside folders someone shared with its user as editor.

  • Only a person can do it. People change members' roles, remove members and turn on public links in the web app; no tool does. An agent can call add_member and share only if it inherits its user's access and its user owns the workspace.

We list the rest under errors many tools share in the MCP reference.

My agent sees "You're writing quickly"

Each agent may make a set number of changes a minute, which we list under Limits in the MCP reference. When it makes more, we refuse the change, change nothing, and say how many seconds to wait. Ask your agent to wait that long and try again, or to create several docs in one create_docs call.

My agent's change conflicts with changes in Monton

People and other agents may change a doc while your agent works on it. We merge their changes with your agent's, and stop only when we can't.

  • write_doc reports conflicts. Your agent and someone else changed the same lines. We save nothing, and send the merged text with conflict markers and the doc's current version. Your agent resolves the conflicts in that text, then writes it again with that version as base_version.

  • "Monton didn't find old_text". Someone changed the passage that edit_doc was to replace, or the text your agent sent differs from the doc in a character that looks the same, such as a curly quote or a non-breaking space. Your agent calls read_doc and copies the text again.

  • "Your base_version … is not a version Monton handed out". Your agent sent a version that didn't come from read_doc or write_doc in this workspace. It reads the doc again, makes its change to that text, and writes with that read's version.

We say more in the write_doc and edit_doc entries.

monton push reports a conflict

You see "We didn't push anything" and the docs that conflict, and we exit with 3. Someone in Monton changed the same lines as you since your last pull, or made a change that can't stand with yours, such as another rename of the same doc. We pushed nothing, so nothing in Monton changed, unless you pushed with --split: then we say "We didn't push anything more", and the commits we pushed before the conflict are in Monton, listed in the error's commits field.

  1. Run monton pull. Where both sides changed the same lines, we write conflict markers into the file and list the lines.

  2. In each file, keep what should stay and delete the marker lines.

  3. Run monton push again.

If we say some files "still have conflict markers" (unresolved_conflicts), finish step 2 in those files. If we say we don't know the versions your docs started from (unknown_base), run monton pull, then push again. We show the markers under Conflicts in the CLI reference.

We marked a comment outdated

We mark a comment outdated when someone deleted or rewrote the passage it was on. We never move it to another passage by guessing, since a comment on the wrong passage is worse than an outdated one. Read the thread, then reply, or resolve it if it no longer applies.

An import left out some files

When you import a folder, in the web app, with monton import or through your agent's start_import, we list the files we left out, grouped by reason, before we import anything and again in the report. We import only markdown, HTML and text files, so we leave out:

  • files that aren't markdown, HTML or text, such as images, PDFs and code; when we leave out images, links to them in your docs won't work;

  • files over 1 MiB, and files that aren't UTF-8 text;

  • hidden files and folders, .git, node_modules and build output folders such as coverage;

  • files whose names Monton doesn't allow, and links;

  • files already in the workspace at that path, since we never replace a doc in an import, and paths where an archived doc is: unarchive it first, or import somewhere else.

To bring in a file we left out, fix it (convert it to UTF-8, split it into smaller docs, rename it), then import it again: we skip what's already there. We don't import a folder with too many files, or more than 25 MiB in all: import each of its folders in turn. With monton import --dry-run, you see what we would import without importing it.

We refuse a push that deletes many docs or is too big

We check every push before we send it, and push nothing when it breaks one of these rules:

  • "this push deletes … docs" (too_many_deletes): we ask for --allow-deletes before a push deletes many docs, to catch a mistake such as someone running a script in the wrong folder. Check the deletes with monton status. If you mean them, run monton push --allow-deletes.

  • "this push is more than one push may hold" (push_too_large): the push has too many docs to write, too much text, or too many renames, moves and deletes for one commit. Push fewer changes at a time, or run monton push --split to send them as several commits.

  • "a push takes at most 2 MiB of text" (doc_too_large): one doc is bigger than that. Make it smaller, or split it into several docs.

  • "Some files can't go to Monton" (cant_push): their bytes aren't UTF-8 text, they're over 1 MiB, or Monton doesn't allow their names. Fix or rename each file, or move it out of the clone.

A coding agent asks you before it adds --allow-deletes or --split. We give the numbers under Many deletes and big pushes.

A script, image or font doesn't load in an HTML page

We show an HTML page in a sandbox, and block its requests to other sites, except libraries and fonts from a short list of sites, which we list under HTML pages. So we don't run a script, load a font or show an image from another site, and we block the page's requests for data from an API.

  • Load the library from one of the listed sites instead, or put the script in the page itself.

  • Put an image in the page as a data: URL, with the image's bytes in the URL itself, and keep it small.

  • Put the data you want on the page in the page itself; ask your agent to write it in when the data changes.

Emails from Monton don't arrive

We send two kinds of email from notifications@mail.monton.dev: invites, when someone invites you to a workspace or shares a folder or doc with you, and notifications about mentions, replies and shares.

  • Look in your spam folder, and add our address to your contacts.

  • For notifications, we wait about 10 minutes, then send one email with what you haven't seen in Monton yet. If you saw everything in your inbox in the meantime, we send nothing.

  • Check Email notifications in your account menu: if you turned them off, we send only invites.

  • If you followed the unsubscribe link in one of our emails and chose to stop our emails, we don't email that address again, invites included. On that page, you can choose Undo right away; later, email us from that address and we'll email you again.

  • For an invite, ask the person who invited you to send you the link themselves: we show it to them once when they invite you, and give it to their agent when it invites you with add_member or share. Sharing again with your email makes a new link and ends the old one.

With a public link, anyone can read a doc without signing in. When you see "This link doesn't work", first check that you opened the whole link, exactly as someone sent it. Otherwise, the link has ended:

  • someone turned the link off in the doc's Share dialog;

  • someone deleted the doc, or renamed it to an .html page: only markdown docs have public links;

  • we took the doc down after someone reported it.

A link we end never works again, even when someone brings the doc back. An owner or editor can turn on a new link in the Share dialog and send it again. When someone renames or moves a markdown doc, we keep its link.

If you see "Try again in a moment", someone opened many public links from your connection in a short time. Wait as many seconds as we say.

My agent sees an internal error, or "try again in a moment"

  • The workspace is busy, or the server is shutting down. We were busy with another change to the workspace for too long, or we are deploying a new version. Try again in a moment.

  • An internal error. Something went wrong on our side, and we may not have finished the request. Your agent checks the current state with read_doc or get_tree before it tries again, so it doesn't make the change twice. If it keeps failing, email us with the tool, the time and the message.

Still stuck

Email hello@monton.dev. Tell us what you did, what you expected, and what happened, with any message you saw in Monton.