     @workspaceRef.onDisconnect().remove()  if @workspace.amIHost()
 
     @finderController.reset()  unless @workspace.getOptions().playground
+
+    @finderController.treeController.on "HistoryItemCreated", (historyItem) =>
+      @workspace.addToHistory historyItem
 
   syncContent: (files) ->
     @workspaceRef.set { files }

  addNodes: (nodes) ->
    super nodes
    @syncInteraction()

  getSnapshot: ->
    snapshot = []

        nodeView         = treeController.nodes[path]
        nodeView.user    = clientData.user

        treeController.openItem nodeView, clientData
        @finderController.treeController.syncInteraction()

    @finderController.on "FileTreeInteractionDone", (files) =>
      @syncContent files

    @finderController.on "OpenedAFile", (file, content) =>
      editorPane = @panel.getPaneByName @getOptions().editor
      unless editorPane
        for pane in @panel.panes
          if pane instanceof CollaborativeEditorPane or pane instanceof CollaborativeTabbedEditorPane
            editorPane = pane

      return  warn "could not find an editor instance to set file content" unless editorPane

