V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
murmur
V2EX  ›  程序员

cursor 最近怎么了,默认的 agent 模式居然会陷入沉思然后进入死循环

  •  
  •   murmur · 17 天前 · 2135 次点击

    就是一个让他设计个搜索框的简单逻辑

    I'll help you add a search box to the header before the icon buttons. I'll make it match the existing design with the blue gradient background. Let me edit the Header.vue file to add this feature:

    失败

    Let me try again with a more focused edit:

    又失败

    Let me try one more time with a more precise approach:

    还是失败

    Let me try a different approach by breaking this into smaller edits:

    又失败了

    Let me try a more targeted approach with a specific line number:

    也失败了

    Let me try a different approach by first adding the CSS and then the HTML:

    还是失败

    I apologize for the difficulty with the edit_file tool. Let me try one more approach with a complete file replacement:

    开始反思了

    后面没有了,我直接停了

    12 条回复    2025-04-09 17:05:07 +08:00
    lyyQAQ
        1
    lyyQAQ  
       17 天前
    回滚到 0.45 试试,0.46 到 0.48 确实有些问题,而且明显缩小了上下文窗口的大小,对话几轮就提示我开一个新对话了
    crackidz
        2
    crackidz  
       17 天前
    这个还算好了,我是会陷入同一个操作的无限循环...
    bantianys
        3
    bantianys  
       17 天前
    无限循环我也遇到过,个人怀疑还是上下文窗口超了,然后某些关键记忆上下文丢失,导致处理某些异常代码逻辑发生循环。要不试试 Gemini2.5pro 这些上下文窗口比较大的。
    leegradyllljjjj
        4
    leegradyllljjjj  
       17 天前
    懂王制裁了?
    zjh7890
        5
    zjh7890  
       17 天前
    edit_file tool apply 变更的时候失败了,然后 cursor 一直做尝试。
    明明给了正确的变更,但是 apply no changes made ,论坛被吐槽疯了。
    hresh
        6
    hresh  
       17 天前
    @lyyQAQ #1 cursor 目前至少 0.46 才可以使用,你还能使用 0.45 吗?
    LeeReamond
        7
    LeeReamond  
       17 天前
    降 本 增 效
    wyntalgeer
        8
    wyntalgeer  
       17 天前
    这两天用得少,还没遇到,看起来是内置提示词太猛了?
    techphoebe
        9
    techphoebe  
       17 天前 via iPhone
    @lyyQAQ 退回 0.45 好像也不行,我昨天退回 0.45 第三轮还是四轮也提示我开新会话了,有两轮陷入一点小问题反复改好多次,其中一轮折腾半天最后骗我活干完了,我一试编译不过,仔细看非常小问题,一个类成员引用少了一级
    techphoebe
        10
    techphoebe  
       17 天前 via iPhone
    @bantianys gimini 2.5 pro 我昨天我试了下还是连文件路径都搞不明白的状态,折腾半天几个文件最后也没写成功,不过生成代码思路倒是没问题
    lyyQAQ
        11
    lyyQAQ  
       16 天前
    @hresh 我在用 0.48 ,我是比较喜欢体验新功能的,当初 0.46 和 0.47 有问题但是我有活要干的时候,我是安回 0.45 了的,那个版本相对要稳定一些
    Witcherbb
        12
    Witcherbb  
       16 天前
    新版本在设置里有勾选更大的上下文窗口(消耗更多次数)或许可以解决
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1676 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 16:35 · PVG 00:35 · LAX 09:35 · JFK 12:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.