WEBVTT
NOTE Generated by scripts/generate-bilingual-video-tracks.mjs from codex-9ohXlkbXiM4.en.vtt and codex-9ohXlkbXiM4.zh-Hans.vtt.

1
00:00:00.160 --> 00:00:02.000
As of recently, especially with the
最近，特别是随着应用程序

2
00:00:02.000 --> 00:00:03.920
introduction of the worktrees within
内工作树的引入

3
00:00:03.920 --> 00:00:06.000
the app, I've kind of started
，我开始

4
00:00:06.000 --> 00:00:07.600
delegating a lot more work than I did
委派比以前更多的工作，

5
00:00:07.600 --> 00:00:10.320
before and working on multiple tasks
并同时处理多个任务

6
00:00:10.320 --> 00:00:12.000
in parallel, which has kind of taken a
，这需要

7
00:00:12.000 --> 00:00:13.920
little bit of a shift of mindset.
思维方式的转变。

8
00:00:13.920 --> 00:00:15.520
Can you show me like an example of
你能给我举个例子，说明一下

9
00:00:15.520 --> 00:00:17.360
what that looks like of working in
并行工作是什么样的，

10
00:00:17.360 --> 00:00:19.120
parallel or what your workflow overall
或者你

11
00:00:19.120 --> 00:00:21.360
in the app looks like? So one of the
在应用程序中的整体工作流程是什么样的吗？ 因此，

12
00:00:21.360 --> 00:00:23.040
features I actually wanted to add was
我真正想要添加的功能之一就是对

13
00:00:23.040 --> 00:00:26.560
the ability to sort my pin tasks.
我的置顶任务进行排序。

14
00:00:27.120 --> 00:00:29.120
So in the worktree, we do have the
所以在工作树中，我们确实可以对

15
00:00:29.120 --> 00:00:30.560
ability to sort these workspaces,
这些工作区进行排序，

16
00:00:30.560 --> 00:00:31.760
which is really nice, and I just want
这非常好，我只是想

17
00:00:31.760 --> 00:00:33.200
to add the same thing for the pin
为固定任务添加同样的功能

18
00:00:33.200 --> 00:00:35.600
tasks. So for this, I'm going to kick
。 因此，我将

19
00:00:35.600 --> 00:00:38.400
off a task on a worktree and use
在工作树上发起一个任务，并使用

20
00:00:39.120 --> 00:00:40.720
the master branch, and I'm just going
主分支，然后

21
00:00:40.720 --> 00:00:43.840
to ask to update the
请求更新

22
00:00:43.840 --> 00:00:47.040
sidebar pinned tasks
侧边栏固定任务，

23
00:00:47.040 --> 00:00:49.920
so that I can drag and drop to
以便我可以拖放

24
00:00:49.920 --> 00:00:52.160
reorder them. So I'll send that out.
它们来重新排序。 那我这就把那份文件寄出去。

25
00:00:52.160 --> 00:00:53.920
And this is where often when I was
而这正是我在开发

26
00:00:53.920 --> 00:00:55.760
working on the VS Code extension,
VS Code 扩展时经常会遇到的情况：

27
00:00:55.760 --> 00:00:57.840
I'd kind of be in this place where I
我

28
00:00:57.840 --> 00:00:59.360
want to let Codex do its thing. I
希望让 Codex 自行运行。 我

29
00:00:59.360 --> 00:01:02.320
don't want to keep working. But
不想继续工作了。 但

30
00:01:02.320 --> 00:01:03.200
I don't have to worry about that
我不用再为此担心了

31
00:01:03.200 --> 00:01:04.720
anymore. It's on its own worktree.
。 它位于自己的工作树中。

32
00:01:04.720 --> 00:01:06.160
It'll be completely managed by the
一切都将由

33
00:01:06.160 --> 00:01:08.160
app, and I can actually go continue
应用程序管理，我可以继续

34
00:01:08.160 --> 00:01:09.760
what I was working on before. So
之前正在处理的工作。 所以，

35
00:01:09.760 --> 00:01:13.280
in this case, I am actively updating
在这种情况下，我正在积极更新

36
00:01:13.280 --> 00:01:15.440
the create branch button.
创建分支按钮。

37
00:01:15.440 --> 00:01:17.440
So let me see if I can find that right
让我看看现在能不能找到

38
00:01:17.440 --> 00:01:19.840
now. So I haven't actually looked at
。 我还没仔细看过

39
00:01:19.840 --> 00:01:23.040
this yet. I'm going to apply all these
这个。 我将把所有这些

40
00:01:23.040 --> 00:01:25.440
changes on my local tree. Okay. And
更改应用到我的本地树中。 好的。

41
00:01:25.440 --> 00:01:27.440
then we can see how Codex did. And
然后我们就可以看到 Codex 的表现了。 是的

42
00:01:27.440 --> 00:01:30.720
yeah, it seems like this might be
，这似乎并非

43
00:01:30.720 --> 00:01:32.000
unintentional. It seems like it's
有意为之。

44
00:01:32.000 --> 00:01:34.320
creating the branch twice here. So
这里似乎创建了两次分支。 所以，

45
00:01:34.320 --> 00:01:35.840
what I can actually do there is I can
我实际上可以在

46
00:01:35.840 --> 00:01:37.440
just comment here, and I can ask it,
这里发表评论，并提出疑问：

47
00:01:38.400 --> 00:01:40.640
why are we creating the
为什么我们要创建

48
00:01:40.640 --> 00:01:44.080
branch twice? So also while you're
两次分支？ 所以，在你

49
00:01:44.080 --> 00:01:46.080
sending this off, you're still having
发送这个任务的同时，

50
00:01:46.080 --> 00:01:47.440
Codex actually work on your other
Codex 还会继续处理你的其他

51
00:01:47.440 --> 00:01:49.360
tasks at the same time. Yes, exactly.
任务。 是的，正是如此。 看起来

52
00:01:49.360 --> 00:01:52.480
It actually seems that... Let's
确实如此……我们来看看

53
00:01:52.480 --> 00:01:55.040
pull up this. I was just working on a
。 我之前也做过一个

54
00:01:55.040 --> 00:01:58.080
similar modal, and I also gave it
类似的模型，我还给它设计了

55
00:01:58.080 --> 00:02:00.160
the Figma designs we see right below
我们在这里看到的下面和上面这些 Figma 设计

56
00:02:00.160 --> 00:02:03.440
here, right above. And
。 而且

57
00:02:03.440 --> 00:02:05.760
it just finished up a nice big PR as
它刚刚也在这里完成了一次非常棒的公关活动

58
00:02:05.760 --> 00:02:07.920
well here. You can see there's a bunch
。 你可以看到

59
00:02:07.920 --> 00:02:09.520
of changes here. And we also have
这里有很多变化。 我们也

60
00:02:09.520 --> 00:02:12.000
finished up this drag and drop PR. So
完成了这个拖放式 PR。 那么

61
00:02:12.000 --> 00:02:13.280
let's take a look at this and see how
让我们来看看

62
00:02:13.280 --> 00:02:15.040
this did. I'm going to quickly clear
结果如何。 我打算尽快清空

63
00:02:15.040 --> 00:02:17.680
out my local state. So let's try and
我所在的州。 那么，让我们尝试

64
00:02:17.680 --> 00:02:20.400
apply this drag and drop feature and
应用这个拖放功能，

65
00:02:20.400 --> 00:02:22.240
see how this one did while it's
看看它在处理另一个项目的同时，这个项目的效果如何

66
00:02:22.240 --> 00:02:23.440
working on the other one. All right.
。 好的。

67
00:02:23.440 --> 00:02:25.840
So if we take a look here and we apply
所以，如果我们看一下这里，并应用

68
00:02:25.840 --> 00:02:28.640
the changes while Codex seems to still
这些更改，而 Codex 似乎

69
00:02:28.640 --> 00:02:29.920
be taking a look at this and making
仍在审查此事，以

70
00:02:29.920 --> 00:02:32.560
sure there's not any problems. We can
确保没有任何问题。 我们可以

71
00:02:32.560 --> 00:02:33.760
keep working here, and I'm going to
继续在这里工作，我将把

72
00:02:33.760 --> 00:02:35.680
apply all the changes for the drag and
所有更改应用到已

73
00:02:35.680 --> 00:02:37.360
drop on the pinned task. So now let's
固定任务的拖放功能上。 现在让我们来

74
00:02:37.360 --> 00:02:39.680
take a look and see how Codex did. All
看看Codex的表现如何。

75
00:02:39.680 --> 00:02:43.360
right. This looks pretty good. I think
好的。 看起来很不错。 我认为，

76
00:02:43.360 --> 00:02:45.440
getting into the habit of
养成全面

77
00:02:45.440 --> 00:02:47.520
really going all in on worktrees and
投入工作树和

78
00:02:47.520 --> 00:02:49.280
working in parallel will completely
并行工作的习惯，将彻底

79
00:02:49.280 --> 00:02:51.360
change how you look at software
改变你对软件

80
00:02:51.360 --> 00:02:54.160
engineering. Instead of focusing on
工程的看法。 你不再需要关注

81
00:02:54.160 --> 00:02:55.920
all the individual lines, you'll look
每一行代码，而是要着眼

82
00:02:55.920 --> 00:02:57.520
at the overall architecture of the
于代码的整体架构，

83
00:02:57.520 --> 00:03:00.000
code and getting good at context
并学会如何

84
00:03:00.000 --> 00:03:02.080
switching in this form. It's pretty
在这种形式下进行上下文切换。

85
00:03:02.080 --> 00:03:04.080
tough to completely switch what you're
完全转换手头的

86
00:03:04.080 --> 00:03:05.440
working on. But if you find good
工作是件相当困难的事。 但是，如果你找到了合适的

87
00:03:05.440 --> 00:03:06.720
stopping points and you know when
停顿点，并且知道何时

88
00:03:06.720 --> 00:03:08.640
to switch, it's a lot better than
切换，那就

89
00:03:08.640 --> 00:03:10.240
either waiting on Codex to finish
比等待 Codex 完成

90
00:03:10.240 --> 00:03:12.080
something or trying to code it all by
某些东西或者尝试自己编写所有代码要好得多

91
00:03:12.080 --> 00:03:13.680
yourself.
。
